Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

An implementation of SKOS for Elixir

License

NotificationsYou must be signed in to change notification settings

rdf-elixir/skos-ex

Repository files navigation

Hex.pmHex DocsLicense

ExUnit TestsDialyzerQuality Checks

SKOS.ex

An implementation of theW3C Simple Knowledge Organization System (SKOS) vocabulary for Elixir as Grax schemas.

The API documentation can be foundhere.For more information about the RDF on Elixir projects, go tohttps://rdf-elixir.dev.

Features

  • TheSKOS module acts as theRDF.Vocabulary.Namespace for the SKOS vocabulary
  • Grax structures for all SKOS classes and their properties, for easycreation and manipulation of SKOS concepts, concept schemes, and collections
  • Seamless integration with all RDF on Elixir projects

Installation

Addskos to your list of dependencies inmix.exs:

defdepsdo[{:skos,"~> 0.1"}]end

Usage

SKOS.Concept.build!(EX.elixir(),pref_label:"Elixir",alt_label:["Elixir language","Elixir lang"],definition:"Elixir is a dynamic, functional language for building scalable and maintainable applications.",broader:[EX.programming_language()],related:[EX.erlang(),EX.beam()])|>Grax.to_rdf!(prefixes:[skos:SKOS,ex:EX])|>RDF.Turtle.write_string!()

produces:

@prefix ex:<http://example.com/concepts/> .@prefix skos:<http://www.w3.org/2004/02/skos/core#> .ex:elixira skos:Concept ;    skos:altLabel"Elixir lang","Elixir language" ;    skos:broader ex:programming_language ;    skos:definition"Elixir is a dynamic, functional language for building scalable and maintainable applications." ;    skos:prefLabel"Elixir" ;    skos:related ex:beam, ex:erlang .

Limitations

  • skos:OrderedCollection is not yet supported

Contributing

SeeCONTRIBUTING for details.

Consulting

If you need help with your Elixir and Linked Data projects, just contactNinjaConcept viacontact@ninjaconcept.com.

License and Copyright

(c) 2024 Marcel Otto. MIT Licensed, seeLICENSE for details.

About

An implementation of SKOS for Elixir

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp