Hi All,

 

I am not sure if this question has been answered before but having spent nearly an hour trying to find an answer, I thought I would just fire my question to your guys.

 

I am trying to store the following RDF tripes in a Fedora datastream:

 

<rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:ms21="http://www.unsw.edu.au/lrs/ms21/ontology/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:VITRO-ANDS="http://www.ands.org.au/ontologies/ns/0.1/VITRO-ANDS.owl#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:terms="http://purl.org/dc/terms/" xmlns:dcam="http://purl.org/dc/dcam/" xmlns:history="http://dublincore.org/usage/terms/history/#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:vitro="http://vitro.mannlib.cornell.edu/ns/vitro/0.7#" xmlns:bibo="http://purl.org/ontology/bibo/" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:geopolitical="http://aims.fao.org/aos/geopolitical.owl#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:core="http://vivoweb.org/ontology/core#" xmlns:aboutdcmi="http://purl.org/dc/aboutdcmi#" xmlns:skos="http://www.w3.org/2004/02/skos/core#">

               <rdf:Description rdf:about="info:fedora/test:1233"> <- Fedora Object

                              <rdf:type rdf:resource="http://www.unsw.edu.au/lrs/ms21/ontology/UNSW_ResearchDataCollection"/>

                              <dc:title>Title</dc:title>

                              <dc:description>dfgdf</dc:description>

                              <ms21:keyword>key</ms21:keyword>

                              <terms:spatial>

                                             <rdf:Description rdf:nodeID="SP_COV1">

                                                            <rdf:type rdf:resource="http://vivoweb.org/ontology/core#GeographicRegion"/>

                                                            <ms21:spatialInformation>TEST Coverage</ms21:spatialInformation>

                                             </rdf:Description>

                              </terms:spatial>

               </rdf:Description>

</rdf:RDF>

 

 

I can store this as a “standard” datastream but querying the RDF through Fedora ri-search SPARQL does not fetch any results.

 

I have tried to store it as a RELS-EXT datastream but I am getting an error, even though the RDF is valid (confirmed by the online W3 RDF validator http://www.w3.org/RDF/Validator/).  I have, however, noticed that it works if I remove the named node “SP_COV1” from the RDF as below. SPARQL also works then.

 

<rdf:RDF xmlns:fedora-model="info:fedora/fedora-system:def/model#" xmlns:ms21="http://www.unsw.edu.au/lrs/ms21/ontology/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:VITRO-ANDS="http://www.ands.org.au/ontologies/ns/0.1/VITRO-ANDS.owl#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:terms="http://purl.org/dc/terms/" xmlns:dcam="http://purl.org/dc/dcam/" xmlns:history="http://dublincore.org/usage/terms/history/#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:vitro="http://vitro.mannlib.cornell.edu/ns/vitro/0.7#" xmlns:bibo="http://purl.org/ontology/bibo/" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:geopolitical="http://aims.fao.org/aos/geopolitical.owl#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:core="http://vivoweb.org/ontology/core#" xmlns:aboutdcmi="http://purl.org/dc/aboutdcmi#" xmlns:skos="http://www.w3.org/2004/02/skos/core#">

               <rdf:Description rdf:about="info:fedora/test:1233"> <- Fedora Object

                              <rdf:type rdf:resource="http://www.unsw.edu.au/lrs/ms21/ontology/UNSW_ResearchDataCollection"/>

                              <dc:title>Title</dc:title>

                              <dc:description>dfgdf</dc:description>

                              <ms21:keyword>key</ms21:keyword>

               </rdf:Description>

</rdf:RDF>

 

I am not sure what I am doing wrong.

Any help on this would be much appreciated.

 

Many thanks in advance.

 

Regards

Arif

 

Arif Shaon

Lead Technical Support Officer, Library Repository Services, UNSW Library

UNSW Library | The University of New South Wales | UNSW Sydney NSW 2052 AUSTRALIA | CRICOS Provider Code: 00098G