Closed vemonet closed 4 years ago
The syntax is easier to read and process: instead of storing and using XPath for everything then we name the XML nodes using the XML node label and we reproduce the structure through a predicate named after the XML labe
Instead of
?targetObj a x2rm:drugbank\/drug\/targets\/target ;
x2rm:hasChild [
a x2rm:drugbank\/drug\/targets\/target\/id ;
x2rm:hasValue ?targetId
] ;
We have
?targetObj a x2rm:drugbank\/drug\/targets\/target ;
x2rm:id ?targetId .
Look into Sparql-Generate, a similar framework to generate KG from structured data using a custom SPARQL language
https://www.iro.umontreal.ca/~lapalme/ForestInsteadOfTheTrees/HTML/apd.html