3

I want to know what kind of format (syntax) a geospatial rdf should have so I can load it into virtuoso (open source) and do a GeoSPARQL query over it. I found a very small and simple geospatial rdf and wanted to load it into VOS, but it gave me an error as:

Unable to load RDF graph from with Content-Type 'application/rdf+xml': 42000: RDFGE: RDF box with a geometry RDF type and a non-geometry content

Edit: I uploaded RDF without any instances and VOS loaded it successfuly. But when I add the instance into it, the error pops. Here the whole RDF i use is:

<?xml version="1.0"?>
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns:sf="http://www.opengis.net/ont/sf#"
    xmlns:geo="http://www.opengis.net/ont/geosparql#"
    xmlns:my="http://example.org/ApplicationSchema#">
<rdfs:Class rdf:about="http://example.org/ApplicationSchema#PlaceOfInterest">
    <rdfs:subClassOf rdf:resource= "http://www.opengis.net/ont/geosparql#Feature"/>
</rdfs:Class>
<rdf:Property rdf:about="http://example.org/ApplicationSchema#hasExactGeometry">
    <rdfs:subPropertyOf rdf:resource="http://www.opengis.net/ont/geosparql#hasGeometry"/>
    <rdfs:subPropertyOf rdf:resource="http://www.opengis.net/ont/geosparql#hasDefaultGeometry"/>
</rdf:Property>
<rdf:Property rdf:about="http://example.org/ApplicationSchema#hasPointGeometry">
    <rdfs:subPropertyOf rdf:resource="http://www.opengis.net/ont/geosparql#hasGeometry"/>
</rdf:Property>
<!-- Instance -->
<my:PlaceOfInterest rdf:about="http://example.org/ApplicationSchema#F">
    <my:hasExactGeometry rdf:resource="http://example.org/ApplicationSchema#FExactGeom"/>
</my:PlaceOfInterest>
<sf:Point rdf:about="http://example.org/ApplicationSchema#FExactGeom">
    <geo:asWKT rdf:datatype= "http://www.opengis.net/ont/geosparql#wktLiteral">
        <![CDATA[ <http://www.opengis.net/def/crs/OGC/1.3/CRS84> Point(-83.4 34.4) ]]>
    </geo:asWKT>
</sf:Point>

</rdf:RDF>

VOS Version is 07.20.3217. What's wrong?

1 Answer 1

2

The problem seems to come from your Geometry declaration.

Usually, the geometry is simply formated as :

"<http://www.opengis.net/def/crs/OGC/1.3/CRS84> Point(-83.4 34.4)"

Try to replace your :

<![CDATA[ <http://www.opengis.net/def/crs/OGC/1.3/CRS84> Point(-83.4 34.4) ]]>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.