Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Neo4j extension

Bo Ferri edited this page Mar 13, 2016 · 12 revisions

The d:swarm Neo4j unmanaged extension runs on server side of a Neo4j graph database. Please follow the steps in the README to set it up on your server. The code of the d:swarm Neo4j unmanaged extension can be found in the dswarm-graph-neo4j repository.

HTTP API Endpoints of the d:swarm Neo4j Unmanaged Extension

Here are some links for convenient testing

http://localhost:7474/graph/maintain/ping 

(result should be "pong")

note: links go to localhost and datamodel 4 is expected to exist

  • return all data models as RDF

     curl http://localhost:7474/graph/rdf/getall
    

(default serialization is N-Quads)

  • return all data models as RDF (serialized as N-Quads)

     curl -H "Accept:application/n-quads" http://localhost:7474/graph/rdf/getall
    
  • return all data models as RDF (serialized as TriG)

     curl -H "Accept:application/trig" http://localhost:7474/graph/rdf/getall
    
  • return the data model with the URI http://data.slub-dresden.de/datamodel/4/data as RDF (serialized as N-Quads)

     curl -H "Accept:application/n-quads" http://localhost:7474/graph/rdf/export?data_model_uri=http://data.slub-dresden.de/datamodel/4/data
    
  • return the data model with the URI http://data.slub-dresden.de/datamodel/4/data as RDF (serialized as Turtle)

     curl -H "Accept:text/turtle" http://localhost:7474/graph/rdf/export?data_model_uri=http://data.slub-dresden.de/datamodel/4/data
    
  • return the data model with the URI http://data.slub-dresden.de/datamodel/4/data as RDF (serialized as N3)

     curl -H "Accept:text/n3" http://localhost:7474/graph/rdf/export?data_model_uri=http://data.slub-dresden.de/datamodel/4/data
    
  • return the data model with the URI http://data.slub-dresden.de/datamodel/4/data as RDF (serialized as RDF/XML)

     curl -H "Accept:application/rdf+xml" http://localhost:7474/graph/rdf/export?&data_model_uri=http://data.slub-dresden.de/datamodel/4/data
    

See also

Clone this wiki locally