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"?>
<rdfs:Class rdf:about="http://example.org/ApplicationSchema#PlaceOfInterest">
    <rdfs:subClassOf rdf:resource= "http://www.opengis.net/ont/geosparql#Feature"/>
<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:about="http://example.org/ApplicationSchema#hasPointGeometry">
    <rdfs:subPropertyOf rdf:resource="http://www.opengis.net/ont/geosparql#hasGeometry"/>
<!-- Instance -->
<my:PlaceOfInterest rdf:about="http://example.org/ApplicationSchema#F">
    <my:hasExactGeometry rdf:resource="http://example.org/ApplicationSchema#FExactGeom"/>
<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) ]]>


VOS Version is 07.20.3217. What's wrong?

1 Answer 1


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.