JIEICT

From Industrial Ecology
Jump to: navigation, search

Query for Electric Car Properties and manufacturers

results

select * where {
{?car skos:subject <http://dbpedia.org/resource/Category:Prototype_electric_vehicles> } 
UNION {?car skos:subject <http://dbpedia.org/resource/Category:Hybrid_electric_vehicles> } 
UNION {?car skos:subject <http://dbpedia.org/resource/Category:Battery_electric_vehicles> } 
UNION {?car skos:subject <http://dbpedia.org/resource/Category:Electric_cars> } 
UNION {?car skos:subject <http://dbpedia.org/resource/Category:Planned_production_electric_vehicles> }.
?car <http://dbpedia.org/ontology/manufacturer> ?manufacturer . 
OPTIONAL{?manufacturer <http://dbpedia.org/ontology/Organisation/foundationDate> ?foundationDate }. 
OPTIONAL{?manufacturer <http://dbpedia.org/ontology/Organisation/location> ?location }. 
OPTIONAL {?car <http://dbpedia.org/ontology/Automobile/engine> ?engine } .
OPTIONAL {?car <http://dbpedia.org/ontology/Automobile/height> ?height } . 
OPTIONAL {?car <http://dbpedia.org/ontology/Automobile/length> ?length } . 
OPTIONAL {?car <http://dbpedia.org/ontology/Automobile/weight> ?weight } . 
} 

Query for Bills on Advanced Technology Vehicles

PREFIX rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX usbill: <http://www.rdfabout.com/rdf/schema/usbill/>
PREFIX time: <http://pervasive.semanticweb.org/ont/2004/06/time#>
PREFIX politico: <http://www.rdfabout.com/rdf/schema/politico/>
PREFIX rdfschema: <http://www.w3.org/2000/01/rdf-schema#>
SELECT * WHERE {
?bill dc:subject ?subject . 
FILTER(?subject = "Hybrid, electric, and advanced technology vehicles") . 
?bill usbill:hadAction ?action . 
?action usbill:voteResult ?voteResult . 
?action time:at ?time . 
?bill usbill:sponsor ?sponsor . 
?sponsor politico:hasRole ?role . 
?role politico:forOffice ?office . 
?office rdfschema:label ?officenamehumanreadable . 
}