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] namespace problem,help!

Thomas Russ tar at isi.edu
Thu Jul 22 09:24:47 PDT 2010


On Jul 22, 2010, at 9:16 AM, Thomas Russ wrote:

>
> On Jul 21, 2010, at 5:13 PM, Joe2278567 wrote:
>
>>
>> hi, the ontology has no namespace, and i use OWL API to retrieve the
>> Properties then a long sentence comes out like below:
>>
>> DefaultOWLObjectProperty(http://www.owl-ontologies.com/AltarPieces.owl#hasinMiddle 
>> ):
>> Parmigianino
>> DefaultOWLDatatypeProperty(http://www.owl-ontologies.com/AltarPieces.owl#hasPictureName 
>> ):
>> David
>
> To get a shorter name using the OWLAPI, you want to call
>
>  myProperty.getIRI().getFragment()
>
> That will get you just the part after the "#" character.

Also look at the SimpleShortFormProvider class.





More information about the protege-owl mailing list