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 use restrictions in protege

Tania Tudorache tudorache at stanford.edu
Fri Mar 27 15:32:55 PDT 2009


Quratulain,

I do not see the ontology attached to your email.

Tania

Quratulain Rajput wrote:
> I am sending you owl files.
> I have created a _laptop.owl_ in protege 3.3.1, then I add individual 
> using jena then I save it as _m.owl _. when I open m.owl in protege 
> every thing is there but shown individuals.
>  
> Another issue is when I set restriction using protege and creating 
> individual in protege it is taking any value which I am entring 
> without considering restriction. how I can restric the values of instance.
>
> thanks
>  
> Quratulain
>  
>  
>  
> On Thu, Mar 26, 2009 at 6:27 AM, Tania Tudorache 
> <tudorache at stanford.edu <mailto:tudorache at stanford.edu>> wrote:
>
>     If you have an OWL file that you cannot open in protege, please
>     post the
>     exception that you get in the console. If you send the file, we
>     can see
>     what is wrong.
>
>     To learn more about the role of restrictions in OWL, I suggest to
>     take a
>     look at the OWL tutorial:
>
>     http://owl.cs.manchester.ac.uk/tutorials/protegeowltutorial/
>
>     Tania
>
>     Quratulain Rajput wrote:
>     > I have the following issues:
>     >  I create instance of a class which can be view if I open owl
>     file in
>     > notepad but not shown in protege.
>     > I define restriction in owl file using protege, when I given
>     values by
>     > individual in protege it is taking any type of value. what is the
>     > advantage to define restriction.
>     >   here is a code
>     > FileOutputStream output=
>     > null;
>     > try
>     > {
>     > output=
>     > new FileOutputStream("c:/java/m.owl");
>     > }
>     > catch(Exception e)
>     > {
>     > System.
>     > err.println("Error Creation File");
>     > System.exit(1);
>     > }
>     > for (Iterator x=c.listDeclaredProperties(); x.hasNext();)
>     > {
>     > OntProperty p=(OntProperty) x.next();
>     > Individual ind=
>     > m.createIndividual("l1",c);
>     > ind.addLiteral(p, data);
>     > m.writeAll(output, "RDF/XML-ABBREV", "xmlbase");
>     > System.
>     > out.println("##############");
>     > }
>     >
>     ------------------------------------------------------------------------
>     >
>     > _______________________________________________
>     > protege-owl mailing list
>     > protege-owl at lists.stanford.edu
>     <mailto:protege-owl at lists.stanford.edu>
>     > https://mailman.stanford.edu/mailman/listinfo/protege-owl
>     >
>     > Instructions for unsubscribing:
>     http://protege.stanford.edu/doc/faq.html#01a.03
>     >
>
>     _______________________________________________
>     protege-owl mailing list
>     protege-owl at lists.stanford.edu <mailto:protege-owl at lists.stanford.edu>
>     https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
>     Instructions for unsubscribing:
>     http://protege.stanford.edu/doc/faq.html#01a.03
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> protege-owl mailing list
> protege-owl at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 
>   




More information about the protege-owl mailing list