Hi Everyone,
I was wondering if it would be possible to output the following nested RDF
structure using D2RQ:
<rdf:RDF>
<acrid:CW_Station
rdf:about="http://www.cru.uea.ac.uk/so/station/CW_Station/cru/1001">
<om:shape
>010100000000000000000052400000000000004140</om:shape>
<iso-mi:identifier>
<iso-m:MD_Identifier
rdf:about="http://www.cru.uea.ac.uk/identifier/10010-3">
<dc:identifier>010010</dc:identifier>
<dc:title>Jan
Mayen</dc:title>
</iso-m:MD_Identifier>
</iso-mi:identifier>
<iso-mi:identifier>
<iso-m:MD_Identifier
rdf:about="http://www.cru.uea.ac.uk/identifier/10010-1">
<dc:identifier>010010</dc:identifier>
<dc:description>local id</dc:description>
</iso-m:MD_Identifier>
</iso-mi:identifier>
<acrid:elevation
rdf:datatype="http://www.w3.org/2001/XMLSchema#decimal">
54.6
</acrid:elevation>
<acrid:country
rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Norway</acrid:country>
</acrid:CW_Station>
</rdf:RDF>
I have tried running a SPARQL describe query against the attached D2RQ map file
but the I only get references to the MD_Identifier resources as follows:
<rdf:RDF
xmlns:iso-mi="http://www.cru.uea.ac.uk/cru/projects/acrid/metadata-2#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:om="http://www.cru.uea.ac.uk/cru/projects/acrid/om#"
xmlns:iso-m="http://www.cru.uea.ac.uk/cru/projects/acrid/metadata#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:dc="http://purl.org/dc/terms/"
xmlns:acrid="http://www.cru.uea.ac.uk/cru/projects/acrid/workflows#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:map="file:///C:/Users/as89/Desktop/SW_Projects/d2rq-0.7/acrid.n3">
<acrid:CW_Station
rdf:about="http://www.cu.uea.ac.uk/so/station/CW_Station/cru/1001">
<om:shape>010100000000000000000052400000000000004140</om:shape>
<acrid:elevation rdf:datatype="http://www.w3.org/2001/XMLSchema#float"
>54.6</acrid:elevation>
<acrid:country>Norway</acrid:country>
<iso-mi:identifier
rdf:resource="http://www.cu.uea.ac.uk/identifier/1001-3"/>
<iso-mi:identifier
rdf:resource="http://www.cu.uea.ac.uk/identifier/1001-1"/>
</acrid:CW_Station>
</rdf:RDF>
My SPARQL query is: DESCRIBE
<http://www.cu.uea.ac.uk/so/station/CW_Station/cru/1001>
I am sure I am missing something obvious here.
Any help would be greatly appreciated.
Best regards
Arif
******************************************************************
Dr Arif Shaon
Software Research Scientist,
Scientific Information Group,
E-Science Centre, Science and Technology Facilities Council,
Rutherford Appleton Laboratory Chilton, Didcot, OXON, OX11 0QX, UK
tel: +44 1235 448178
[email protected]<mailto:[email protected]>
--
Scanned by iCritical.
@prefix map: <> .
@prefix db: <> .
@prefix om: <http://www.cru.uea.ac.uk/cru/projects/acrid/om#> .
@prefix acrid: <http://www.cru.uea.ac.uk/cru/projects/acrid/workflows#> .
@prefix iso-m: <http://www.cru.uea.ac.uk/cru/projects/acrid/metadata#> .
@prefix iso-mi: <http://www.cru.uea.ac.uk/cru/projects/acrid/metadata-2#> .
@prefix dc: <http://purl.org/dc/terms/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .
@prefix jdbc: <http://d2rq.org/terms/jdbc/> .
map:database a d2rq:Database;
d2rq:jdbcDriver "org.postgresql.Driver";
d2rq:jdbcDSN "";
d2rq:username "";
d2rq:password "";
d2rq:textColumn "station.location";
.
# Table station
map:station a d2rq:ClassMap;
d2rq:dataStorage map:database;
d2rq:uriPattern "so/station/CW_Station/cru/@@station.localid@@";
d2rq:class acrid:CW_Station;
.
map:station__label a d2rq:PropertyBridge;
d2rq:belongsToClassMap map:station;
d2rq:property rdfs:label;
d2rq:pattern "station #@@station.localid@@";
.
map:station_location a d2rq:PropertyBridge;
d2rq:belongsToClassMap map:station;
d2rq:property om:shape;
d2rq:propertyDefinitionLabel "station location";
d2rq:column "station.location";
.
map:station_identifier a d2rq:PropertyBridge;
d2rq:belongsToClassMap map:station;
d2rq:property iso-mi:identifier;
d2rq:refersToClassMap map:station_identifiers;
d2rq:join "station_identifiers.station_id => station.localid";
.
map:station_elevation a d2rq:PropertyBridge;
d2rq:belongsToClassMap map:station;
d2rq:property acrid:elevation;
d2rq:column "station.elevation";
d2rq:datatype xsd:float;
.
map:station_country a d2rq:PropertyBridge;
d2rq:belongsToClassMap map:station;
d2rq:property acrid:country;
d2rq:column "station.country";
.
# Table station_identifiers
map:station_identifiers a d2rq:ClassMap;
d2rq:dataStorage map:database;
d2rq:uriPattern
"identifier/@@station_identifiers.station_id@@-@@station_identifiers.id@@";
d2rq:class iso-m:MD_Identifier;
.
map:station_identifiers_value a d2rq:PropertyBridge;
d2rq:belongsToClassMap map:station_identifiers;
d2rq:property dc:identifier;
d2rq:column "station_identifiers.value";
.
map:station_identifiers_name a d2rq:PropertyBridge;
d2rq:belongsToClassMap map:station_identifiers;
d2rq:property dc:title;
d2rq:column "station_identifiers.name";
.
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel