- Notifications
You must be signed in to change notification settings - Fork0
An implementation of DCAT for Elixir
License
NotificationsYou must be signed in to change notification settings
rdf-elixir/dcat-ex
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
An implementation of theW3C Data Catalog Vocabulary (DCAT) - Version 3 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.
- The
DCAT
module acts as theRDF.Vocabulary.Namespace
for the DCAT vocabulary - Grax structures for all DCAT classes and their properties, for easycreation and manipulation of data catalogs, datasets, and data services
- Seamless integration with all RDF on Elixir projects
Adddcat
to your list of dependencies inmix.exs
:
defdepsdo[{:dcat,"~> 0.1"}]end
DCAT.Dataset.build!(EX.my_dataset(),title:"My Dataset",description:"This is a sample dataset",release_date:Date.utc_today(),publishers:[EX.my_org()],keywords:["sample","dataset","example"],themes:[EX.sample_theme()])|>Grax.to_rdf!(prefixes:[dcat:DCAT,ex:EX,xsd:RDF.NS.XSD,dct:DCAT.NS.DCTerms])|>RDF.Turtle.write_string!()
produces:
@prefix dcat:<http://www.w3.org/ns/dcat#> .@prefix dct:<http://purl.org/dc/terms/> .@prefix ex:<http://example.com/> .@prefix xsd:<http://www.w3.org/2001/XMLSchema#> .ex:my_dataseta dcat:Dataset ; dct:title"My Dataset" ; dct:description"This is a sample dataset" ; dct:issued"2024-08-06"^^xsd:date ; dct:publisher ex:my_org ; dcat:keyword"dataset","example","sample" ; dcat:theme ex:sample_theme .
SeeCONTRIBUTING for details.
If you need help with your Elixir and Linked Data projects, just contactNinjaConcept viacontact@ninjaconcept.com.
(c) 2024 Marcel Otto. MIT Licensed, seeLICENSE for details.
About
An implementation of DCAT for Elixir
Resources
License
Code of conduct
Stars
Watchers
Forks
Packages0
No packages published