[protege-owl] Exception saving a project: No schema found in URI 'nullA330'

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[protege-owl] Exception saving a project: No schema found in URI 'nullA330'

Colleen Watkins
I am using Protege 3.2 Beta (build 243).

An exception (see below) occured when I attempted to save, "File->Save" a
project.  In additon, after the error occured my "core.owl" file size is 0.

Any thoughts on why this error occurs?


-------Exception-----
com.hp.hpl.jena.rdf.arp.RelativeURIException: No scheme found in URI 'nullA330'
at com.hp.hpl.jena.rdf.arp.URI.initialize(URI.java:393)
at com.hp.hpl.jena.rdf.arp.URI.<init>(URI.java:198)
at com.hp.hpl.jena.rdf.arp.URI.<init>(URI.java:182)
at com.hp.hpl.jena.rdf.arp.URI.relativize(URI.java:1420)
at com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.relativize
(BaseXMLWriter.java:706)
at com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.relativize
(BaseXMLWriter.java:696)
at com.hp.hpl.jena.xmloutput.impl.Unparser.wURIreference(Unparser.java:913)
at com.hp.hpl.jena.xmloutput.impl.Unparser.wURIreference(Unparser.java:917)



------core.owl------
<?xml version="1.0"?>
<rdf:RDF
        xmlns:owl="http://www.w3.org/2002/07/owl#"
        xmlns:ddms="http://www.dod.mil/ddms/1.0/ddms#"
        xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns="http://metadata.dod.mil/mdr/irs/taxonomies/TBD/2.0/core.owl#"
        xml:base="http://metadata.dod.mil/mdr/irs/taxonomies/TBD/2.0/core.owl#">
        <owl:Ontology rdf:about="">
                <rdfs:comment>
                        <ddms:Resource>
                                <ddms:identifier
ddms:qualifier="http://metadata.dod.mil/mdr/ns/MDR/1.0/MDR.owl#GovernanceNamespa
ce" ddms:value="TBD"/>
                                <ddms:identifier ddms:qualifier="Version"
ddms:value="2.0"/>
                                <ddms:title>DoD Core Taxonomy</ddms:title>
                                <ddms:classification>U</ddms:classification>
                                <ddms:description>The organization taxonomy
sample (with updated URI format for MDR 5.1). This should be submitted
first.</ddms:description>
                                <ddms:dates ddms:posted="2004-07-06"/>
                                <ddms:creator>
                                        <ddms:Person>
                                                <ddms:name>Glenda
Hayes</ddms:name>
                                       
        <ddms:surname>Hayes</ddms:surname>
                                       
        <ddms:affiliation>MITRE</ddms:affiliation>
                                                <ddms:phone>703-883-
7175</ddms:phone>
                                       
        <ddms:email>[hidden email]</ddms:email>
                                        </ddms:Person>
                                </ddms:creator>
                                <ddms:publisher>
                                        <ddms:Organization>
                                                <ddms:name>MITRE</ddms:name>
                                                <ddms:phone>703-883-
7175</ddms:phone>
                                       
        <ddms:email>[hidden email]</ddms:email>
                                        </ddms:Organization>
                                </ddms:publisher>
                                <ddms:format>
                                        <ddms:Media>
                                       
        <ddms:mimeType>text/xml</ddms:mimeType>
                                       
        <ddms:medium>digital</ddms:medium>
                                                <ddms:extent
ddms:qualifier="byteSize" ddms:value="29811"/>
                                        </ddms:Media>
                                </ddms:format>
                                <ddms:subjectCoverage>
                                        <ddms:Subject>
                                                <ddms:category
ddms:qualifier="http://metadata.dod.mil/mdr/irs/taxonomies/TBD/2.0/core.owl#"
ddms:code="InformationManagement" ddms:label="someLabel"/>
                                        </ddms:Subject>
                                </ddms:subjectCoverage>
                                <ddms:temporalCoverage>
                                        <ddms:TimePeriod>
                                                <ddms:start>2004-07-
06</ddms:start>
                                                <ddms:end>2004-12-31</ddms:end>
                                        </ddms:TimePeriod>
                                </ddms:temporalCoverage>
                                <ddms:geospatialCoverage>
                                        <ddms:Place>
                                                <ddms:name>Virtual</ddms:name>
                                        </ddms:Place>
                                </ddms:geospatialCoverage>
                                <ddms:protectedBy>
                                        <ddms:Security>
                                       
        <ddms:classification>U</ddms:classification>
                                        </ddms:Security>
                                </ddms:protectedBy>
                        </ddms:Resource>
                </rdfs:comment>
        </owl:Ontology>

        <owl:Class rdf:ID="Organization" rdfs:label="An Organization">
        </owl:Class>
       
        <owl:Class rdf:ID="PoliticalOrganization" rdfs:label="Political
Organization">
                <rdfs:subClassOf rdf:resource="#Organization" />
        </owl:Class>
</rdf:RDF>



-------------------------------------------------------------------------
To unsubscribe go to http://protege.stanford.edu/community/subscribe.html

Reply | Threaded
Open this post in threaded view
|

[protege-owl] Re: Exception saving a project: No schema found in URI 'nullA330'

Ronnie Valkky
Hi Colleen,

I think it's a software bug and have been reported as bug several time in
this forum.

I did SAVE AS with  Protege 3.2 Beta (build 241) using the same core.owl as
you.
The result was the same i.e. the output file size is 0kb.

Practically this means that there is no content i.e. you loose your content.
Personally I regard this kind of software behavious dangerous and as an
error.

Only available solution I have found is
- not to use SAVE, SAVE as
- close project, save it or exit Protege OWl, save.
- whenever doing project level/file level operations such as
export,convert,transfer
-- I close,save,copy to different drive and do operations there.

There is a risk to loose a whole owl file and/or to loose changes.

I agree with you, this is an error although someone else might classify it
as a warning.

Continuing with 0kb ontology is a challenge itself and backups in that
situation more than welcome!?

cheers
Ronnie


----- Original Message -----
From: "Colleen Watkins" <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, February 08, 2006 6:25 PM
Subject: [protege-owl] Exception saving a project: No schema found in URI
'nullA330'


> I am using Protege 3.2 Beta (build 243).
>
> An exception (see below) occured when I attempted to save, "File->Save" a
> project.  In additon, after the error occured my "core.owl" file size is
0.
>
> Any thoughts on why this error occurs?
>
>
> -------Exception-----
> com.hp.hpl.jena.rdf.arp.RelativeURIException: No scheme found in URI
'nullA330'
> at com.hp.hpl.jena.rdf.arp.URI.initialize(URI.java:393)
> at com.hp.hpl.jena.rdf.arp.URI.<init>(URI.java:198)
> at com.hp.hpl.jena.rdf.arp.URI.<init>(URI.java:182)
> at com.hp.hpl.jena.rdf.arp.URI.relativize(URI.java:1420)
> at com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.relativize
> (BaseXMLWriter.java:706)
> at com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.relativize
> (BaseXMLWriter.java:696)
> at
com.hp.hpl.jena.xmloutput.impl.Unparser.wURIreference(Unparser.java:913)
> at
com.hp.hpl.jena.xmloutput.impl.Unparser.wURIreference(Unparser.java:917)

>
>
>
> ------core.owl------
> <?xml version="1.0"?>
> <rdf:RDF
> xmlns:owl="http://www.w3.org/2002/07/owl#"
> xmlns:ddms="http://www.dod.mil/ddms/1.0/ddms#"
> xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> xmlns="http://metadata.dod.mil/mdr/irs/taxonomies/TBD/2.0/core.owl#"
> xml:base="http://metadata.dod.mil/mdr/irs/taxonomies/TBD/2.0/core.owl#">
> <owl:Ontology rdf:about="">
> <rdfs:comment>
> <ddms:Resource>
> <ddms:identifier
>
ddms:qualifier="http://metadata.dod.mil/mdr/ns/MDR/1.0/MDR.owl#GovernanceNam
espa

> ce" ddms:value="TBD"/>
> <ddms:identifier ddms:qualifier="Version"
> ddms:value="2.0"/>
> <ddms:title>DoD Core Taxonomy</ddms:title>
> <ddms:classification>U</ddms:classification>
> <ddms:description>The organization taxonomy
> sample (with updated URI format for MDR 5.1). This should be submitted
> first.</ddms:description>
> <ddms:dates ddms:posted="2004-07-06"/>
> <ddms:creator>
> <ddms:Person>
> <ddms:name>Glenda
> Hayes</ddms:name>
>
> <ddms:surname>Hayes</ddms:surname>
>
> <ddms:affiliation>MITRE</ddms:affiliation>
> <ddms:phone>703-883-
> 7175</ddms:phone>
>
> <ddms:email>[hidden email]</ddms:email>
> </ddms:Person>
> </ddms:creator>
> <ddms:publisher>
> <ddms:Organization>
> <ddms:name>MITRE</ddms:name>
> <ddms:phone>703-883-
> 7175</ddms:phone>
>
> <ddms:email>[hidden email]</ddms:email>
> </ddms:Organization>
> </ddms:publisher>
> <ddms:format>
> <ddms:Media>
>
> <ddms:mimeType>text/xml</ddms:mimeType>
>
> <ddms:medium>digital</ddms:medium>
> <ddms:extent
> ddms:qualifier="byteSize" ddms:value="29811"/>
> </ddms:Media>
> </ddms:format>
> <ddms:subjectCoverage>
> <ddms:Subject>
> <ddms:category
>
ddms:qualifier="http://metadata.dod.mil/mdr/irs/taxonomies/TBD/2.0/core.owl#
"

> ddms:code="InformationManagement" ddms:label="someLabel"/>
> </ddms:Subject>
> </ddms:subjectCoverage>
> <ddms:temporalCoverage>
> <ddms:TimePeriod>
> <ddms:start>2004-07-
> 06</ddms:start>
> <ddms:end>2004-12-31</ddms:end>
> </ddms:TimePeriod>
> </ddms:temporalCoverage>
> <ddms:geospatialCoverage>
> <ddms:Place>
> <ddms:name>Virtual</ddms:name>
> </ddms:Place>
> </ddms:geospatialCoverage>
> <ddms:protectedBy>
> <ddms:Security>
>
> <ddms:classification>U</ddms:classification>
> </ddms:Security>
> </ddms:protectedBy>
> </ddms:Resource>
> </rdfs:comment>
> </owl:Ontology>
>
> <owl:Class rdf:ID="Organization" rdfs:label="An Organization">
> </owl:Class>
>
> <owl:Class rdf:ID="PoliticalOrganization" rdfs:label="Political
> Organization">
> <rdfs:subClassOf rdf:resource="#Organization" />
> </owl:Class>
> </rdf:RDF>
>
>
>
> -------------------------------------------------------------------------
> To unsubscribe go to http://protege.stanford.edu/community/subscribe.html
>
>


-------------------------------------------------------------------------
To unsubscribe go to http://protege.stanford.edu/community/subscribe.html

Reply | Threaded
Open this post in threaded view
|

Re: Exception saving a project: No schema found in URI 'nullA330'

Nick Drummond
In reply to this post by Colleen Watkins
Colleen,

This file has several problems. I'm not sure what you're trying to do here.
All of the resources identified by the ddms namespace have no type - eg
<ddms:Resource> (as there is no import of the ontology that describes them)
Why are you putting a resource into the comment for the ontology?
If you want to keep this xml in there, but not have it interpreted by
Protege, you would need to escape all of the xml .
How did you create this?

Nick

Colleen Watkins wrote:

>I am using Protege 3.2 Beta (build 243).
>
>An exception (see below) occured when I attempted to save, "File->Save" a
>project.  In additon, after the error occured my "core.owl" file size is 0.
>
>Any thoughts on why this error occurs?
>
>
>-------Exception-----
>com.hp.hpl.jena.rdf.arp.RelativeURIException: No scheme found in URI 'nullA330'
>at com.hp.hpl.jena.rdf.arp.URI.initialize(URI.java:393)
>at com.hp.hpl.jena.rdf.arp.URI.<init>(URI.java:198)
>at com.hp.hpl.jena.rdf.arp.URI.<init>(URI.java:182)
>at com.hp.hpl.jena.rdf.arp.URI.relativize(URI.java:1420)
>at com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.relativize
>(BaseXMLWriter.java:706)
>at com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.relativize
>(BaseXMLWriter.java:696)
>at com.hp.hpl.jena.xmloutput.impl.Unparser.wURIreference(Unparser.java:913)
>at com.hp.hpl.jena.xmloutput.impl.Unparser.wURIreference(Unparser.java:917)
>
>
>
>------core.owl------
><?xml version="1.0"?>
><rdf:RDF
> xmlns:owl="http://www.w3.org/2002/07/owl#"
> xmlns:ddms="http://www.dod.mil/ddms/1.0/ddms#"
> xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> xmlns="http://metadata.dod.mil/mdr/irs/taxonomies/TBD/2.0/core.owl#"
> xml:base="http://metadata.dod.mil/mdr/irs/taxonomies/TBD/2.0/core.owl#">
> <owl:Ontology rdf:about="">
> <rdfs:comment>
> <ddms:Resource>
> <ddms:identifier
>ddms:qualifier="http://metadata.dod.mil/mdr/ns/MDR/1.0/MDR.owl#GovernanceNamespa
>ce" ddms:value="TBD"/>
> <ddms:identifier ddms:qualifier="Version"
>ddms:value="2.0"/>
> <ddms:title>DoD Core Taxonomy</ddms:title>
> <ddms:classification>U</ddms:classification>
> <ddms:description>The organization taxonomy
>sample (with updated URI format for MDR 5.1). This should be submitted
>first.</ddms:description>
> <ddms:dates ddms:posted="2004-07-06"/>
> <ddms:creator>
> <ddms:Person>
> <ddms:name>Glenda
>Hayes</ddms:name>
>
> <ddms:surname>Hayes</ddms:surname>
>
> <ddms:affiliation>MITRE</ddms:affiliation>
> <ddms:phone>703-883-
>7175</ddms:phone>
>
> <ddms:email>[hidden email]</ddms:email>
> </ddms:Person>
> </ddms:creator>
> <ddms:publisher>
> <ddms:Organization>
> <ddms:name>MITRE</ddms:name>
> <ddms:phone>703-883-
>7175</ddms:phone>
>
> <ddms:email>[hidden email]</ddms:email>
> </ddms:Organization>
> </ddms:publisher>
> <ddms:format>
> <ddms:Media>
>
> <ddms:mimeType>text/xml</ddms:mimeType>
>
> <ddms:medium>digital</ddms:medium>
> <ddms:extent
>ddms:qualifier="byteSize" ddms:value="29811"/>
> </ddms:Media>
> </ddms:format>
> <ddms:subjectCoverage>
> <ddms:Subject>
> <ddms:category
>ddms:qualifier="http://metadata.dod.mil/mdr/irs/taxonomies/TBD/2.0/core.owl#"
>ddms:code="InformationManagement" ddms:label="someLabel"/>
> </ddms:Subject>
> </ddms:subjectCoverage>
> <ddms:temporalCoverage>
> <ddms:TimePeriod>
> <ddms:start>2004-07-
>06</ddms:start>
> <ddms:end>2004-12-31</ddms:end>
> </ddms:TimePeriod>
> </ddms:temporalCoverage>
> <ddms:geospatialCoverage>
> <ddms:Place>
> <ddms:name>Virtual</ddms:name>
> </ddms:Place>
> </ddms:geospatialCoverage>
> <ddms:protectedBy>
> <ddms:Security>
>
> <ddms:classification>U</ddms:classification>
> </ddms:Security>
> </ddms:protectedBy>
> </ddms:Resource>
> </rdfs:comment>
> </owl:Ontology>
>
> <owl:Class rdf:ID="Organization" rdfs:label="An Organization">
> </owl:Class>
>
> <owl:Class rdf:ID="PoliticalOrganization" rdfs:label="Political
>Organization">
> <rdfs:subClassOf rdf:resource="#Organization" />
> </owl:Class>
></rdf:RDF>
>
>
>
>-------------------------------------------------------------------------
>To unsubscribe go to http://protege.stanford.edu/community/subscribe.html
>
>
>  
>

--

Nick Drummond

http://www.cs.man.ac.uk/~drummond/ <http://www.cs.man.ac.uk/%7Edrummond/>
-------------------------------------------------------------------------
To unsubscribe go to http://protege.stanford.edu/community/subscribe.html