neo4j-labs / neosemantics

Graph+Semantics: Import/Export RDF from Neo4j. SHACL Validation, Model mapping and more.... If you like it, please ★ ⇧
https://neo4j.com/labs/neosemantics/
Apache License 2.0
827 stars 144 forks source link

Getting the URI of a property #75

Closed noorbakerally closed 5 years ago

noorbakerally commented 5 years ago

I am trying to get the URI of a property with the following query but it returns only null

Query: MATCH (n:Resource {uri:'http://elite.polito.it/ontologies/dogont.owl#Actuator'})-[r]->() Return r.uri

Result ╒═══════╕ │"r.uri"│ ╞═══════╡ │null │ ├───────┤ │null │ └───────┘

The plugin, does it not save the URI of the predicate ?

jbarrasa commented 5 years ago

Hi @noorbakerally. You can try this: MATCH (n:Resource {uri:'http://elite.polito.it/ontologies/dogont.owl#Actuator'})-[r]->() Return type(r)

The uri of the relationship is not stored as a property but as it's type. You can find out more about the way RDF is mapped to LPG here (see rule 2b).

I hope this helps.

JB.