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 FOAF for Elixir

License

NotificationsYou must be signed in to change notification settings

rdf-elixir/foaf-ex

Repository files navigation

Hex.pmHex DocsLicense

ExUnit TestsDialyzerQuality Checks

FOAF.ex

An implementation of theFriend of a Friend (FOAF) 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

  • TheFOAF module acts as theRDF.Vocabulary.Namespace for the FOAF vocabulary
  • Grax structures for all FOAF classes and their properties, for easycreation and manipulation of FOAF profiles, groups, and documents
  • Seamless integration with all RDF on Elixir projects

Installation

Addfoaf to your list of dependencies inmix.exs:

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

Usage

FOAF.Person.build!(EX.john_doe(),name:"John Doe",mbox:~I<mailto:john@example.com>,homepages:~I<http://example.com/john>,knows:[EX.jane_doe()],interests:[~I<http://www.w3.org/TR/rdf-sparql-query/>])|>Grax.to_rdf!(prefixes:[foaf:FOAF,ex:EX])|>RDF.Turtle.write_string!()

produces:

@prefix ex:<http://example.com/> .@prefix foaf:<http://xmlns.com/foaf/0.1/> .ex:john_doea foaf:Person ;    foaf:homepage ex:john ;    foaf:interest<http://www.w3.org/TR/rdf-sparql-query/> ;    foaf:knows ex:jane_doe ;    foaf:mbox<mailto:john@example.com> ;    foaf:name"John Doe" .

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 FOAF for Elixir

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp