{{{ #!comment NB! Make sure that you follow the guidelines: http://trac.posccaesar.org/wiki/IdsAdiEditing }}} [[TracNav(TracNav/RdsWip)]] [[Image(wiki:IdsAdiBranding:Logo-128x128.gif)]] = POSC-Caesar FIATECH IDS-ADI Projects = == Intelligent Data Sets Accelerating Deployment of ISO15926 == == ''Realizing Open Information Interoperability'' == ---- = RDS/WIP sample queries in SPARQL = == Using the OWL/RDF native endpoint == (write here) == Using the reified ISO 15926-2 endpoint == '''To execute the following scripts, go to the [http://rdswip.ids-adi.org/presentation/search/rds-sparql.html RDS/WIP query test page]. === Taxonomy === 1. Get me all the subclasses of PUMP: {{{ PREFIX owl: PREFIX rdf: PREFIX rdfs: PREFIX xsd: PREFIX rdl: PREFIX part2: PREFIX base: PREFIX dc: PREFIX rdswip: SELECT ?subclassIdPCA ?subclassDesignation ?superclassIdPCA ?superclassDesignation WHERE { ?specialization part2:hasSuperclass ?superclass . ?specialization part2:hasSubclass ?subclass . ?subclass rdswip:hasIdPCA ?subclassIdPCA . ?subclass rdswip:hasDesignation ?subclassDesignation . ?superclass rdswip:hasIdPCA ?superclassIdPCA . ?superclass rdswip:hasDesignation ?superclassDesignation . ?superclass rdswip:hasDesignation "PUMP" } LIMIT 100 }}} If you wish to see what this returns right away, [http://rdswip.ids-adi.org/servlets/pcardl?query=PREFIX+owl%3A+%0D%0APREFIX+rdf%3A+%0D%0APREFIX+rdfs%3A+%0D%0APREFIX+xsd%3A+%0D%0APREFIX+rdl%3A+%0D%0APREFIX+part2%3A+%0D%0APREFIX+base%3A+%0D%0APREFIX+dc%3A+%0D%0APREFIX+rdswip%3A+%0D%0ASELECT+%0D%0A++%3FsubclassIdPCA+%3FsubclassDesignation+%0D%0A++%3FsuperclassIdPCA+%3FsuperclassDesignation%0D%0AWHERE+%0D%0A{%0D%0A++%3Fspecialization+part2%3AhasSuperclass+%3Fsuperclass+.%0D%0A++%3Fspecialization+part2%3AhasSubclass+%3Fsubclass+.%0D%0A++%3Fsubclass+rdswip%3AhasIdPCA+%3FsubclassIdPCA+.%0D%0A++%3Fsubclass+rdswip%3AhasDesignation+%3FsubclassDesignation+.%0D%0A++%3Fsuperclass+rdswip%3AhasIdPCA+%3FsuperclassIdPCA+.%0D%0A++%3Fsuperclass+rdswip%3AhasDesignation+%3FsuperclassDesignation+.%0D%0A++%3Fsuperclass+rdswip%3AhasDesignation+"PUMP"++%0D%0A}%0D%0Alimit+100&stylesheet=xml-to-html.xsl click here]. ----