Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] UnsupportedDatatypeException?

Brad Cox bradjcox at gmail.com
Tue Apr 13 07:46:13 PDT 2010


Is there a way to use "external" types (GML for example) as
DataProperty types, for example, GPS coordinates?

This didn't work; throws UnsupportedDatatypeException: Datatype
handler for datatype gml#Point has not been registered

<!DOCTYPE Ontology [
    <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
    <!ENTITY xml "http://www.w3.org/XML/1998/namespace" >
    <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
    <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
    <!ENTITY gml "http://www.opengis.net/gml#" >
]>


<Ontology xmlns="http://www.w3.org/2002/07/owl#"
     xml:base="http://bo2#"
     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
     xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:xml="http://www.w3.org/XML/1998/namespace"
     xmlns:gml="http://www.opengis.net/gml#"
     ontologyIRI="http://bo2#"
>
    <Prefix name="xsd" IRI="http://www.w3.org/2001/XMLSchema#"/>
    <Prefix name="owl" IRI="http://www.w3.org/2002/07/owl#"/>
    <Prefix name="" IRI="http://www.w3.org/2002/07/owl#"/>
    <Prefix name="rdf" IRI="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
    <Prefix name="rdfs" IRI="http://www.w3.org/2000/01/rdf-schema#"/>
    <Prefix name="gml" IRI="http://www.opengis.net/gml#"/>
...

    <DataPropertyAssertion>
        <DataProperty IRI="hasGPSLocation"/>
        <NamedIndividual IRI="Fingerprint1"/>
        <Literal datatypeIRI="&gml;Point">49.27 -123.11</Literal>
    </DataPropertyAssertion>

-- 
Cell: 703-594-1883
Blog: http://bradjcox.blogspot.com
Web: http://virtualschool.edu
Manassas VA 20111
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture.jpg
Type: image/jpeg
Size: 29010 bytes
Desc: not available
URL: <http://mailman.stanford.edu/pipermail/protege-owl/attachments/20100413/d1dca02d/attachment.jpg>


More information about the protege-owl mailing list