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

License

NotificationsYou must be signed in to change notification settings

rdf-elixir/prov-ex

Repository files navigation

Hex.pmHex DocsLicense

ExUnit TestsDialyzerQuality Checks

PROV.ex

An implementation of theW3C PROV (Provenance) 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

  • ThePROV module acts as theRDF.Vocabulary.Namespace for the PROV vocabulary
  • Grax structures for all PROV classes and their properties, for easycreation and manipulation of provenance information including entities, activities, and agents
  • Seamless integration with all RDF on Elixir projects

Installation

Addprov to your list of dependencies inmix.exs:

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

Usage

PROV.Entity.build!(EX.report(),was_generated_by:EX.compile(),was_attributed_to:EX.researcher(),generated_at:DateTime.utc_now(),was_derived_from:EX.data())|>Grax.to_rdf!(prefixes:[prov:PROV,ex:EX,xsd:RDF.NS.XSD])|>RDF.Turtle.write_string!()

produces:

@prefix ex:<http://example.com/> .@prefix prov:<http://www.w3.org/ns/prov#> .@prefix xsd:<http://www.w3.org/2001/XMLSchema#> .ex:reporta prov:Entity ;    prov:generatedAtTime"2024-08-06T23:46:18.503394Z"^^xsd:dateTime ;    prov:wasAttributedTo ex:researcher ;    prov:wasDerivedFrom ex:data ;    prov:wasGeneratedBy ex:compile .

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp