Search Mailing List Archives
[protege-owl] retrieving object properties new to protege owl
tredmond at stanford.edu
Tue Jan 19 11:00:48 PST 2010
With no other listed requirements I would suggest that you use the owl
api. There are some example programs at . I have also attached a
sample program that gets the domain and range of a property. You can
run this but you would have to change the file declaration at the top.
> I am Subalalitha.I am new to Protege owl.I have a doubt on retrieving
> object properties.I have created the ontology using editor.Now i want access
> it through java code so that i can integrate it to my project.
> For example i have created classes namely "country" and "City".I have
> created subclass for country namely "India" and I have created a subclass
> for city namely ,"Chennai".I have created an object property ,"hasCity"
> having domain as India and range as chennai.
> Now how do i extract the object property ,"hasCity" and identify the
> range and domain via java code.Kindly help me out.Thanks in advance
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1871 bytes
Desc: not available
More information about the protege-owl