reteplayground
Construct

The heart and its parts (partonomy)

SubjectPredicateObject
Anterior_interventricular_sul…labelAnterior interventric…
Anterior_surface_of_heartlabelAnterior surface of h…
Apex_of_heartlabelApex of heart @en
Base_of_heartlabelBase of heart @en
Run this query → no server · no download · no account
caviri.github.io/rete
Run this query in the playground → 37 triples · 58 ms · no server, no download — the query runs in your browser.

The query

PREFIX anat: <https://w3id.org/rete/anatomy#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> CONSTRUCT { ?heart anat:hasPart ?p . ?heart rdfs:label ?hl . ?p rdfs:label ?pl . } WHERE { ?heart rdfs:label "Heart"@en , ?hl . ?heart anat:hasPart ?p . ?p rdfs:label ?pl . FILTER(langMatches(lang(?hl),"en") && langMatches(lang(?pl),"en")) }

rete playground · documentation · github.com/caviri/rete