Log in | Register
Shape Repository
Medical Shapes
Virtual Manufacturing Repository
User Group Management
Credits

SPARQL search examples

The following two queries demonstrate some simple SPARQL examples to be used with the Shape Common Ontology (SCO). For more information about the SCO class hierarchy and properties please have a look at the Shape Ontology tutorial.

Query1

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
ordis.europa.eu/ist/kct/aimatshape_synopsis.htm/g

SELECT ?X ?Y1 ?Y2 ?Y3
WHERE
{?X a sco:ManifoldVolumeMesh .
?X sco:hasName ?Y1 .
?X sco:hasQuality ?Y2 .
?X sco:hasNumberOfCells ?Y3}

Query2

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
ordis.europa.eu/ist/kct/aimatshape_synopsis.htm/g
ordis.europa.eu/ist/kct/aimatshape_synopsis.htm/g

SELECT ?X ?Y1 ?Y2 ?Y3
WHERE
{?X a sco:ManifoldVolumeMesh .
?X sco:hasUploader ico:INRIA .
?X sco:hasName ?Y1 .
?X sco:hasQuality ?Y2 .
?X sco:hasNumberOfCells ?Y3}


The following query demonstrates a simple SPARQL examples to be used with the Tool Common Ontology (TCO). For more information about the TCO class hierarchy and properties please have a look at the Tool Ontology tutorial.

Query3

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
ordis.europa.eu/ist/kct/aimatshape_synopsis.htm/g

SELECT ?X ?Y1 ?Y2 ?Y3
WHERE
{?X a tco:IndependentApplication .
?X tco:hasName ?Y1 .
?X tco:hasDescription ?Y2 .
?X tco:hasExecutionPlatform ?Y3}