Closed soylent-grin closed 8 years ago
Where are SPARQL queries?
If you want to select all qudt quantity in SI you can use this:
SELECT * WHERE {
<http://qudt.org/vocab/quantity#SystemOfQuantities_SI> <http://qudt.org/schema/qudt#systemDerivedQuantityKind> ?x.
?x <http://www.w3.org/2000/01/rdf-schema#rdfs:label> ?z
}
For find all units of measurement you can use next query:
SELECT ?unit ?label WHERE {
<http://qudt.org/vocab/quantity#SystemOfQuantities_SI> <http://qudt.org/schema/qudt#systemDerivedQuantityKind>|<http://qudt.org/schema/qudt#systemBaseQuantityKind> ?x.
?unit <http://qudt.org/schema/qudt#quantityKind> ?x;
<http://www.w3.org/2000/01/rdf-schema#label> ?label
}
query
SELECT * WHERE {
<http://qudt.org/vocab/quantity#SystemOfQuantities_SI> <http://qudt.org/schema/qudt#systemDerivedQuantityKind> ?x.
?x <http://www.w3.org/2000/01/rdf-schema#rdfs:label> ?z
}
returns zero results
It's a misprint. Try this:
SELECT * WHERE {
<http://qudt.org/vocab/quantity#SystemOfQuantities_SI> <http://qudt.org/schema/qudt#systemDerivedQuantityKind> ?x.
?x <http://www.w3.org/2000/01/rdf-schema#label> ?z
}
I suggest a query to get the list of units which are related to a particular Property, e.g. with qudt-quantity:ThermodynamicTemperature
:
SELECT ?unit ?label {
?unit a qudt:Unit ;
qudt:quantityKind qudt-quantity:ThermodynamicTemperature ;
rdfs:label ?label .
}
I think, this issue can be close and the work on incorporating these queries in the app should be continued in #22.
Seems like not all the ontologies are included to Fuseki (for example,
emtr
is not - so we can not declare, for example,ssn:observes emtr:PolyphaseVoltage
sensor. After that, write SPARQL query to get list of features of interest and units of measurement