MaastrichtU-IDS / d2s-project-template

📋 Template to build CWL workflows to convert data to a RDF Knowledge Graph and deploy services.
https://d2s.semanticscience.org/
MIT License
5 stars 0 forks source link

Improve generic RDF generated from XML2RDF #7

Closed vemonet closed 4 years ago

vemonet commented 5 years ago

https://www.iro.umontreal.ca/~lapalme/ForestInsteadOfTheTrees/HTML/apd.html

vemonet commented 5 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 .
vemonet commented 4 years ago

Look into Sparql-Generate, a similar framework to generate KG from structured data using a custom SPARQL language

https://ci.mines-stetienne.fr/sparql-generate/