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-discussion] Unable to get te imported ontology prefix

Vasco Costa hypept at gmail.com
Wed May 27 12:02:10 PDT 2009


Hi,

I'm using the time-entry Ontology which has the following:

<!DOCTYPE owl [

     <!ENTITY owl  "http://www.w3.org/2002/07/owl#" >
     <!ENTITY time-entry  "http://www.isi.edu/~pan/damltime/time-entry.owl#"
>
     <!ENTITY xsd  "http://www.w3.org/2001/XMLSchema#" >
     <!ENTITY rdf  "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >

   ]>

<rdf:RDF
  xmlns     = "http://www.isi.edu/~pan/damltime/time-entry.owl#"
  xml:base  = "http://www.isi.edu/~pan/damltime/time-entry.owl"
  xmlns:owl = "http://www.w3.org/2002/07/owl#"
  xmlns:rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:rdfs = "http://www.w3.org/2000/01/rdf-schema#"
  xmlns:xsd = "http://www.w3.org/2001/XMLSchema#"
  xmlns:time-entry = "http://www.isi.edu/~pan/damltime/time-entry.owl#">

We are trying to get the 'time-entry' because it's the base, and used the
following:

Collection prefixCollection =
Fonte.getSingleton().getDomainOntology().getOWLModel().getNamespaceManager().getPrefixes();
Iterator prefixIterator = prefixCollection.iterator();
String prefix = prefixIterator.next().toString();
f.setOrtOntPrefix(prefix+":");

Now here is the weird part.. This piece of code returns the correct value on
my project partner's computer but doesn't on mine.

Any tip?

Thanks,

Vasco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20090527/86ec10e2/attachment.html>


More information about the protege-discussion mailing list