Re: Loading prov in Protege

Tim,
if the problem is the concatenation could you please take a look?
If I need to change the id of prov-dc just let me know, although
then prov-dictionary will have to be changed as well.

I have defined ontologies importing prov, and I need it to load in Protege
for them to load too.
Thanks,
Daniel



2013/5/4 Paul Groth <p.t.groth@vu.nl>

> I think the thing is the concatenation - protege doesn't seem to like
> duplicate terms.
>
> Paul
>
>
> On Thu, May 2, 2013 at 5:22 PM, Daniel Garijo <
> dgarijo@delicias.dia.fi.upm.es> wrote:
>
>>   Hi Tim.
>>  I get the same error. Before I didn't get it.
>>  I have checked and I uploaded the prov-dc ontology in mercurial,
>>  and everything is declared as it is in PROV-dictionary:
>>
>> https://dvcs.w3.org/hg/prov/raw-file/ec6859fefebf/namespace/prov-dc.owl
>>
>>  ^That link loads ok in Protege.
>>
>>  Do I have to change anything?
>>  Best,
>> Daniel
>>
>>
>> 2013/5/2 Timothy Lebo <lebot@rpi.edu>
>>
>>> prov-wg,
>>>
>>> Has anyone had success loading http://www.w3.org/ns/prov in Protege?
>>>
>>> I receive the following two messages that might arise from the
>>> "namespace concatenation" that I did recently.
>>>
>>> Any thoughts?
>>>
>>> Thanks,
>>> Tim
>>>
>>>
>>>
>>> == Resolve missing import? ==
>>> The system could not locate the ontology:
>>> http://www.w3.org/ns/prov-dc#
>>>
>>>
>>>
>>> == Second error ==
>>>
>>> Ontology already exists. <http://www.w3.org/ns/prov#>
>>>
>>>
>>> Full Stack Trace
>>>
>>> -----------------------------------------------------------------------------------------
>>>
>>> org.semanticweb.owlapi.model.OWLOntologyAlreadyExistsException: Ontology
>>> already exists. <http://www.w3.org/ns/prov#>
>>>         at
>>> uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:628)
>>>         at
>>> uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:564)
>>>         at
>>> uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadImports(OWLOntologyManagerImpl.java:975)
>>>         at
>>> uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.makeLoadImportRequest(OWLOntologyManagerImpl.java:996)
>>>         at
>>> org.coode.owlapi.rdfxml.parser.TPImportsHandler.handleTriple(TPImportsHandler.java:79)
>>>         at
>>> org.coode.owlapi.rdfxml.parser.OWLRDFConsumer.handleStreaming(OWLRDFConsumer.java:1436)
>>>         at
>>> org.coode.owlapi.rdfxml.parser.OWLRDFConsumer.statementWithResourceValue(OWLRDFConsumer.java:1395)
>>>         at
>>> org.semanticweb.owlapi.rdf.syntax.RDFParser.statementWithResourceValue(RDFParser.java:538)
>>>         at
>>> org.semanticweb.owlapi.rdf.syntax.RDFParser$EmptyPropertyElement.startElement(RDFParser.java:992)
>>>         at
>>> org.semanticweb.owlapi.rdf.syntax.RDFParser$PropertyElementList.startElement(RDFParser.java:876)
>>>         at
>>> org.semanticweb.owlapi.rdf.syntax.RDFParser.startElement(RDFParser.java:247)
>>>         at
>>> org.coode.owlapi.rdfxml.parser.RDFXMLParser$1.startElement(RDFXMLParser.java:62)
>>>         at
>>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
>>>         at
>>> com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
>>>         at
>>> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:377)
>>>         at
>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2756)
>>>         at
>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
>>>         at
>>> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
>>>         at
>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
>>>         at
>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
>>>         at
>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
>>>         at
>>> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
>>>         at
>>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
>>>         at
>>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
>>>         at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
>>>         at
>>> org.semanticweb.owlapi.rdf.syntax.RDFParser.parse(RDFParser.java:146)
>>>         at
>>> org.coode.owlapi.rdfxml.parser.RDFXMLParser.parse(RDFXMLParser.java:90)
>>>         at
>>> uk.ac.manchester.cs.owl.owlapi.ParsableOWLOntologyFactory.loadOWLOntology(ParsableOWLOntologyFactory.java:165)
>>>         at
>>> uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:619)
>>>         at
>>> uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:580)
>>>         at
>>> org.protege.editor.owl.model.OWLModelManagerImpl.loadOntologyFromPhysicalURI(OWLModelManagerImpl.java:318)
>>>         at
>>> org.protege.editor.owl.OWLEditorKit.handleLoadFrom(OWLEditorKit.java:179)
>>>         at
>>> org.protege.editor.core.ProtegeManager.loadAndSetupEditorKitFromURI(ProtegeManager.java:179)
>>>         at
>>> org.protege.editor.core.ProtegeWelcomeFrame$ProtegeWelcomePanel.handleOpenFromURI(ProtegeWelcomeFrame.java:188)
>>>         at
>>> org.protege.editor.core.ProtegeWelcomeFrame$ProtegeWelcomePanel.access$000(ProtegeWelcomeFrame.java:71)
>>>         at
>>> org.protege.editor.core.ProtegeWelcomeFrame$ProtegeWelcomePanel$3.actionPerformed(ProtegeWelcomeFrame.java:146)
>>>         at
>>> org.protege.editor.core.ui.util.LinkLabel.activateLink(LinkLabel.java:102)
>>>         at
>>> org.protege.editor.core.ui.util.LinkLabel.access$100(LinkLabel.java:30)
>>>         at
>>> org.protege.editor.core.ui.util.LinkLabel$1.mouseReleased(LinkLabel.java:68)
>>>         at java.awt.Component.processMouseEvent(Component.java:6382)
>>>         at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
>>>         at java.awt.Component.processEvent(Component.java:6147)
>>>         at java.awt.Container.processEvent(Container.java:2083)
>>>         at java.awt.Component.dispatchEventImpl(Component.java:4744)
>>>         at java.awt.Container.dispatchEventImpl(Container.java:2141)
>>>         at java.awt.Component.dispatchEvent(Component.java:4572)
>>>         at
>>> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
>>>         at
>>> java.awt.LightweightDispatcher.processMouseEvent(Container.java:4280)
>>>         at
>>> java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
>>>         at java.awt.Container.dispatchEventImpl(Container.java:2127)
>>>         at java.awt.Window.dispatchEventImpl(Window.java:2489)
>>>         at java.awt.Component.dispatchEvent(Component.java:4572)
>>>         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:710)
>>>         at java.awt.EventQueue.access$400(EventQueue.java:82)
>>>         at java.awt.EventQueue$2.run(EventQueue.java:669)
>>>         at java.awt.EventQueue$2.run(EventQueue.java:667)
>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>         at
>>> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
>>>         at
>>> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
>>>         at java.awt.EventQueue$3.run(EventQueue.java:683)
>>>         at java.awt.EventQueue$3.run(EventQueue.java:681)
>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>         at
>>> java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
>>>         at java.awt.EventQueue.dispatchEvent(EventQueue.java:680)
>>>         at
>>> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
>>>         at
>>> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
>>>         at
>>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
>>>         at
>>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
>>>         at
>>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
>>>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
>>>
>>>
>>>
>>
>
>
> --
>
> -----------------------------------------------------------------------------------
> Dr. Paul Groth (p.t.groth@vu.nl)
> http://www.few.vu.nl/~pgroth/
> Assistant Professor
> - Web & Media Group | Department of Computer Science
> - The Network Institute
> VU University Amsterdam
>

Received on Monday, 6 May 2013 14:58:51 UTC