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] how to create instance of class using jena

Thomas Russ tar at ISI.EDU
Fri Mar 20 08:51:02 PDT 2009


On Mar 20, 2009, at 7:55 AM, Quratulain Rajput wrote:

> I have create an OWL file using protege.
>
> I have defined Laptop ontology have only one class LAPTOP with five  
> datatype properties.
> I want to create instance of this class and want assign values to  
> datatype properties.
>
> Individual ind=c.createIndividual("l1");
>
> x=c.listDeclaredProperties()
>
> OntProperty p=(OntProperty) x.next();
>
>
> ind.addLiteral(p, data);
>
> but no change in owl file.
>

You need to save the OWL file.

See the recent thread
  http://article.gmane.org/gmane.comp.misc.ontology.protege.owl/28489



More information about the protege-owl mailing list