GSC RDF Generator - GeoSmartCity-CIP/gsc GitHub Wiki
RDF-Generator
Description
RDF-Generator is a web application based on Spring framework that exposes a REST-full service to produce an RDF Document.
Work done
Development completed and deployment on hub.geosmartcity.eu
Work remaining
None
Current issues
None
Detail
As part of the project Geosmartcity the application is designed to produce an RDF Document based on ontology called "GeosmartCity Ontology" which extends the already existing SEMANCO Ontology implemented in the SEMANCO project (http://www.semanco-project.eu/ontology.htm). RDF Document is produced from a WFS Service which publishes the energy certificate data of municipal buildings of Reggio Emilia. The RTD document produced by RDF-Generator was imported into the Virtuoso Triple-Store.
Geosmartcity Ontology is published at the web address: http://hub.geosmartcity.eu/semantic/ontologies/EnergyCertificates/1.0/EnergyCertificates.owl
Virtuoso is published at the web address: http://hub.geosmartcity.eu/conductor
Virtuoso SPARQL endpoint is published at the web address: http://hub.geosmartcity.eu/sparql
An example query on Virtuoso SPARQL endpoint:
PREFIX SEMANCO: http://semanco-tools.eu/ontology-releases/eu/semanco/ontology/SEMANCO/SEMANCO.owl# PREFIX gsc: http://hub.geosmartcity.eu/semantic/ontologies/EnergyCertificates/1.0/EnergyCertificates.owl# SELECT ?buildingName ?energyLabel ?connectionGas ?connectionElectricity ?heightMode ?heightValue ?conservationState WHERE{ http://hub.geosmartcity.eu/semantic/resource/UE003 SEMANCO:hasBuilding_Name _:xN . _:xN SEMANCO:building_NameValue ?buildingName . http://hub.geosmartcity.eu/semantic/resource/UE003 SEMANCO:hasEnergy_Indicator _:yy . http://hub.geosmartcity.eu/semantic/resource/UE003 gsc:connectionGas ?connectionGas . http://hub.geosmartcity.eu/semantic/resource/UE003 gsc:connectionElectricity ?connectionElectricity . _:yy rdfs:label ?energyLabel. http://hub.geosmartcity.eu/semantic/resource/UE003 SEMANCO:hasBuilding_Height _:xx . _:xx gsc:building_HeightMode ?heightMode . _:xx SEMANCO:building_HeightValue ?heightValue . http://hub.geosmartcity.eu/semantic/resource/UE003 SEMANCO:hasConservation_State _:zz . _:zz SEMANCO:conservation_StateValue ?conservationState . }
RDF-Generator is published at the web address: http://hub.geosmartcity.eu/rdf-generator/
The service can be queried with three different modes:
- Mode One - without filter:
In this mode RDF-Generator produce an RDF Document that containing all the data published by the WFS service. Example: http://hub.geosmartcity.eu/rdf-generator/rdf/
- Mode Two - with filter on the number of elements:
In this mode RDF-Generator produce an RDF Document that containing the first N elements returned by calling the WFS service. Example: http://hub.geosmartcity.eu/rdf-generator/rdf/{n}/
- Mode Three - with filter on the bounding box:
In this mode RDF-Generator produce an RDF Document that containing all the elements contained in the indicated bounding box. Example: http://hub.geosmartcity.eu/rdf-generator/rdf/bbox/{minx,miny,maxx,maxy}/