Open ofilangi opened 2 years ago
SWDiscovery(config) .something("uri") .set(URI(uri)) .isSubjectOf(QueryVariable("relation"),"datatype") .console() .select("relation","datatype") .commit().raw()
PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> SELECT ?uri ?relation ?datatype WHERE { VALUES ?uri { <http://rdf.ncbi.nlm.nih.gov/pubchem/reference/PMID34198149> } . ?uri ?relation ?datatype . { { ?relation ?property_relation ?object_relation } UNION { [] ?relation [] } UNION { ?subject_relation ?property_relation ?relation } } }