8000 GitHub - Zelzahn/solid-rml-store: Generate RDF in a Solid store using RML
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Zelzahn/solid-rml-store

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solid RML Store

This Solid store allows you to generate RDF through the use of RML rules.

How to use

First install this repository as a dependency:

$ npm i @rmlio/solid-rml-store

Then add the following lines to your config:

"@context": [
    "https://linkedsoftwaredependencies.org/bundles/npm/@rmlio/solid-rml-store/^0.0.0/components/context.jsonld",
    {
      "solid-rml-store": "urn:solid-rml-store:default"
    }
  ],
"import": [
    "files-rsrs:config/default.json"
  ],
"@graph": [
    {
      "@id": "solid-rml-store:AnyToRdfConverter",
      "AnyToRdfConverter:_rmlRulesPath": [path to the rules file],
      "AnyToRdfConverter:_rmlmapperPath": [path to the jar]
    },
]

AnyToRdfConverter

This converter converts an existing representation to its RDF representation, according to the RML rules defined in a given file (AnyToRdfConverter:_rmlRulesPath). The content-type defined in the representation's metadata is used to know the type of the input data, thus this cannot be undefined.

If the RMLMapper (rmlmapper.jar) is not found at the given location (AnyToRdfConverter:_rmlmapperPath), then the latest version is download to that location. Beware that this jar is approximately 60MB, thus this download can take some time.

About

Generate RDF in a Solid store using RML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%
0