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] datatype definition in OWL file

Eugenio Tacchini eugenio.tacchini at unicatt.it
Sat Apr 28 07:35:33 PDT 2007


Hello,
is it possible to add an xmlschema definition inside an owl file?

I have tried to do so:

<?xml version="1.0"?>
<rdf:RDF
xmlns="http://www.mysite.org/#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xml:base="http://www.mysite.org/">

<xsd:schema>
<xsd:simpleType name="MyYear">
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="1700"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>

<owl:Ontology rdf:about=""/>
.......

But if I try to open the file using protege I get this error:
"Jena parse error message: {E201} The attributes on this property 
element, are not permitted with any content; expecting end element tag."
on the line:
<xsd:simpleType name="MyYear">
and other similar errors.

Thanks.

Regards,

Eugenio.




More information about the protege-owl mailing list