/neosemantics

Experiments bridging the RDF and LPG worlds. Hopefully soon to be merged into https://github.com/neo4j-contrib/neo4j-apoc-procedures

Primary LanguageJava

neosemantics

This repository contains the following stored procedures

Stored Proc Name params Description and example usage
semantics.importRDF
  • URL of the dataset
  • serialization(*)
  • shorten urls [true,false]
  • periodic commit
Imports into Neo4j all the triples in the data set according to [the mapping defined here] (https://jesusbarrasa.wordpress.com/2016/06/07/importing-rdf-data-into-neo4j/)
Examples:
CALL semantics.importRDF("file:///.../myfile.ttl","Turtle", false, 500)
CALL semantics.importRDF("http:///.../data.rdf","RDF/XML", false, 500)
semantics.LiteOntoImport
  • URL of the dataset
  • serialization(*)
Imports the basic elements of an OWL or RDFS ontology, i.e. Classes, Properties, Domains, Ranges. Extended description here
Example:
CALL semantics.LiteOntoImport("http://.../myonto.trig","TriG")

(*) Valid formats: Turtle, N-Triples, JSON-LD, TriG, RDF/XML