PREFIX pr: <http://purl.org/ontology/prv/core#>
PREFIX prefix: <http://prefix.cc/>
PREFIX br: <http://vocab.deri.ie/br#>
PREFIX unit: <http://qudt.org/vocab/unit/>
PREFIX quantitykind: <http://qudt.org/vocab/quantitykind/>
PREFIX qudt: <http://qudt.org/schema/qudt/>
PREFIX sh: <http://www.w3.org/ns/shacl#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX brick: <https://brickschema.org/schema/1.1/Brick#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ff_120: <https://test.com/ff_120#>
SELECT ?s ?o ?uuid WHERE {
VALUES ?subclass_constraint { brick:Reset_Setpoint brick:Limit }
?s a brick:HeatingCurve .
?s brick:hasPoint ?o .
?o rdf:type/rdfs:subClassOf* ?subclass_constraint .
?o brick:TimeseriesUUID ?uuid .
}
So I have loaded in an RDF ontology file:
https://brickschema.org/ontology
In one scenario:
I create a graph using the python RDF lib and the classes and relationships therein... then I serialize the triples and load it into Neo4j...
Then I need to come up with something like the query above... but am struggling
I assume the answer is somewhere in here: Chapter 11. Inferencing/Reasoning - Neosemantics(n10s) User Guide
@jesus.barrasa
Another big big question I have is tooling... I don't really want to have to create my semantic graph with some other toolchain and then load it into Neo4j from a file...
I have started experimenting with creating the graph natively in Neo4j... but I find myself having to "check" the way n10s parses my serialized .ttl graph I've make in python RDF lib... and then structure my Neo4j SDK to "build" the triples the same way... Is this required? Is there a better approach?
Finally