cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Neo Semantics - RDF end point

Version Info: neo4J 4.0.8 and neo semantics library latest 4.1.0.1 version

I am try to using the rdf export feature of neo semantics:

a) Label & property based API call is working fine
:GET /rdf/neo4j/describe/find/Product/productID/7?format=TRIG&excludeContext=true
is giving me a rdf result with the individual instance.
//Output
@prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# .
@prefix neovoc: neo4j://vocabulary# .
@prefix neoind: neo4j://individuals# .

neoind:6 a neovoc:Product;
neovoc:discontinued false;
neovoc:unitsOnOrder "0"^^http://www.w3.org/2001/XMLSchema#long;
neovoc:categoryID "7";
neovoc:unitsInStock "15"^^http://www.w3.org/2001/XMLSchema#long;
neovoc:unitPrice 3.0E1;
neovoc:productID "7";
neovoc:supplierID "3";
neovoc:productName "Uncle Bob's Organic Dried Pears";
neovoc:reorderLevel "10"^^http://www.w3.org/2001/XMLSchema#long;
neovoc:quantityPerUnit "12 - 1 lb pkgs." .

b) If I am trying to access the same instance with neo4J ID using the below API call, the output is not having any individuals.
:GET /rdf/neo4j/describe/6
//Output
@prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# . @prefix neovoc: neo4j://vocabulary# . @prefix neoind: neo4j://individuals# .
or

:GET /rdf/neo4j/describe/http%3A%2F%2Fneo4j.org%2Find%23neo4j6?format=RDF/XML

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:neovoc="neo4j://vocabulary#"
xmlns:neoind="neo4j://individuals#">

</rdf:RDF>

c)
Cypher based RDF export is also returning empty individuals
:POST /rdf/neo4j/cypher
{ "cypher" : "MATCH path = (n:Customer { customerID : 'GROSR'})-[:PURCHASED]->(o)-[:ORDERS]->()-[:PART_OF]->(:Category { categoryName : 'Beverages'}) RETURN path " , "format": "RDF/XML"}

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:neovoc="neo4j://vocabulary#"
xmlns:neoind="neo4j://individuals#">

</rdf:RDF>

0 REPLIES 0