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] comparison reg

Timothy Redmond tredmond at stanford.edu
Mon Nov 12 10:09:23 PST 2012


On 11/10/2012 06:02 AM, kala devi ramar wrote:
> Hello sir
> I have imported weather forecating files (XML format) to protege and 
> converted to owl.
> I need to say the *temp* class in one file is similar to *temperature* 
> class in another file .
>

A key question is what you mean exactly by "similar".  If you mean that 
the two classes (temp and temperature) have the exact same individuals 
then you can say that they are equivalent classes.  This equivalence can 
be set up in the Classes Tab by selecting the "Equivalent To" value.

> Similary *humidity* is equal to relative *humidity*.
>

If humidity and relativeHumidity are classes then you can say that they 
are equivalent classes.  If they are both properties then you can use 
"Equivalent To" in the Properties Tab.

> *Wind-speed* class in one file is a subset of another file's class *wind*.
>

Again you can set this "SubClass of" statement in the Classes Tab. The 
fact that they are in different files does not matter.  If one of the 
files imports the other or if you want to add your assertion in an 
ontology that imports both files then you will see both class names in 
the Protege interface and you can simply add the "SubClass of" statement.

-Timothy



> I am trying for a long time and very much confused. Please tell me the 
> direction
> Thank you
> R.kaladevi
>
>
> --- On *Wed, 11/7/12, protege-discussion-request at lists.stanford.edu 
> /<protege-discussion-request at lists.stanford.edu>/* wrote:
>
>
>     From: protege-discussion-request at lists.stanford.edu
>     <protege-discussion-request at lists.stanford.edu>
>     Subject: protege-discussion Digest, Vol 76, Issue 8
>     To: protege-discussion at lists.stanford.edu
>     Date: Wednesday, November 7, 2012, 12:18 PM
>
>     Send protege-discussion mailing list submissions to
>     protege-discussion at lists.stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=protege-discussion@lists.stanford.edu>
>
>     To subscribe or unsubscribe via the World Wide Web, visit
>     https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>     or, via email, send a message with subject or body 'help' to
>     protege-discussion-request at lists.stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=protege-discussion-request@lists.stanford.edu>
>
>     You can reach the person managing the list at
>     protege-discussion-owner at lists.stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=protege-discussion-owner@lists.stanford.edu>
>
>     When replying, please edit your Subject line so it is more specific
>     than "Re: Contents of protege-discussion digest..."
>
>
>     Today's Topics:
>
>        1. Re: jena and sparql reg (kala devi ramar)
>
>
>     ----------------------------------------------------------------------
>
>     Message: 1
>     Date: Tue, 6 Nov 2012 22:48:37 -0800 (PST)
>     From: kala devi ramar <kala_ramar at yahoo.com
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=kala_ramar@yahoo.com>>
>     To: protege-discussion at lists.stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=protege-discussion@lists.stanford.edu>
>     Subject: Re: [protege-discussion] jena and sparql reg
>     Message-ID:
>        
>     <1352270917.82128.YahooMailClassic at web162505.mail.bf1.yahoo.com
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=1352270917.82128.YahooMailClassic@web162505.mail.bf1.yahoo.com>>
>     Content-Type: text/plain; charset="iso-8859-1"
>
>     hello all
>     ?
>     As per your suggestion i have used
>     http://protegewiki.stanford.edu/wiki/CompileProtege4InEclipseFromSvn
>     ?to link protege with eclipse. now i want to know how can i write
>     jena rules and sparql queries for my imported protege files (RDF,
>     OWL) with eclipse.Please give your suggestion as early as possible
>     ?
>     thank you
>     ?
>     R.kaladevi
>
>
>
>
>
>
>
>
>
>
>
>     Hello
>     i have used the URL
>     http://protegewiki.stanford.edu/wiki/CompileProtege4InEclipseFromSvn
>     to compile and run protege 4.1 in eclipse. i want know how to
>     write jena rules and sparql queries for my protege RDF files
>     available with eclipse
>
>
>
>
>
>
>
>
>
>
>
>     Hello
>     i have used the URL
>     http://protegewiki.stanford.edu/wiki/CompileProtege4InEclipseFromSvn
>     to compile and run protege 4.1 in eclipse. i want know how to
>     write jena rules and sparql queries for my protege RDF files
>     available with eclipse
>
>
>
>
>
>
>
>
>
>
>
>     Hello
>     i have used the URL
>     http://protegewiki.stanford.edu/wiki/CompileProtege4InEclipseFromSvn
>     to compile and run protege 4.1 in eclipse. i want know how to
>     write jena rules and sparql queries for my protege RDF files
>     available with eclipse
>
>
>     --- On Mon, 10/29/12,
>     protege-discussion-request at lists.stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=protege-discussion-request@lists.stanford.edu>
>     <protege-discussion-request at lists.stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=protege-discussion-request@lists.stanford.edu>>
>     wrote:
>
>
>     From: protege-discussion-request at lists.stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=protege-discussion-request@lists.stanford.edu>
>     <protege-discussion-request at lists.stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=protege-discussion-request@lists.stanford.edu>>
>     Subject: protege-discussion Digest, Vol 75, Issue 30
>     To: protege-discussion at lists.stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=protege-discussion@lists.stanford.edu>
>     Date: Monday, October 29, 2012, 12:35 PM
>
>
>     Send protege-discussion mailing list submissions to
>     ??? protege-discussion at lists.stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=protege-discussion@lists.stanford.edu>
>
>     To subscribe or unsubscribe via the World Wide Web, visit
>     ??? https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>     or, via email, send a message with subject or body 'help' to
>     ??? protege-discussion-request at lists.stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=protege-discussion-request@lists.stanford.edu>
>
>     You can reach the person managing the list at
>     ??? protege-discussion-owner at lists.stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=protege-discussion-owner@lists.stanford.edu>
>
>     When replying, please edit your Subject line so it is more specific
>     than "Re: Contents of protege-discussion digest..."
>
>
>     Today's Topics:
>
>     ???1. Re: converting projects between OWL and Frames - Vice versa
>     ? ? ? (Timothy Redmond)
>     ???2. Re: Jena and Complex SPARQL query (Timothy Redmond)
>
>
>     ----------------------------------------------------------------------
>
>     Message: 1
>     Date: Sun, 28 Oct 2012 23:45:17 -0700
>     From: Timothy Redmond <tredmond at stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=tredmond@stanford.edu>>
>     To: protege-discussion at lists.stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=protege-discussion@lists.stanford.edu>
>     Subject: Re: [protege-discussion] converting projects between OWL and
>     ??? Frames - Vice versa
>     Message-ID: <508E25FD.1030903 at stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=508E25FD.1030903@stanford.edu>>
>     Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
>
>     > I thought convert to project format would solve my issue, even if
>     > ontologies are developed in two different formats.
>     > But it seems the conversion is not working properly, and we get so
>     > many errors like (no content displayed in the screen).
>
>     The conversion between frames and OWL doesn't work well.
>
>
>     >
>     > We have a requirement to use both OWL and frames (since we need
>     some
>     > plugins which are developed solely for this) to develop ontologies.
>
>     This is an awkward requirement.???But you should investigate the
>     possibility that your frame based plugins will simply work in
>     Protege 3
>     OWL.? The Protege 3 OWL api is based on the Protege frames api.? So
>     depending on the plugins you might be able to get them to work in
>     Protege 3 OWL.
>
>     -Timothy
>
>
>
>     On 10/26/2012 07:01 PM, Ganesh kumar wrote:
>     >
>     > Hi All,
>     >
>     > I am using prot?g? 3.4.8 to develop ontologies.
>     >
>     > We have a requirement to use both OWL and frames (since we need
>     some
>     > plugins which are developed solely for this) to develop ontologies.
>     >
>     > I thought convert to project format would solve my issue, even if
>     > ontologies are developed in two different formats.
>     > But it seems the conversion is not working properly, and we get so
>     > many errors like (no content displayed in the screen).
>     >
>     > Is there a way I could convert my project between frames and OWL?
>     >
>     > Thanks
>     > Ganesh
>     >
>     >
>     >
>     > _______________________________________________
>     > protege-discussion mailing list
>     > protege-discussion at lists.stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=protege-discussion@lists.stanford.edu>
>     > https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>     >
>     > Instructions for unsubscribing:
>     http://protege.stanford.edu/doc/faq.html#01a.03
>
>     -------------- next part --------------
>     An HTML attachment was scrubbed...
>     URL:
>     <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20121028/19e20970/attachment-0001.html>
>
>     ------------------------------
>
>     Message: 2
>     Date: Mon, 29 Oct 2012 00:05:09 -0700
>     From: Timothy Redmond <tredmond at stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=tredmond@stanford.edu>>
>     To: protege-discussion at lists.stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=protege-discussion@lists.stanford.edu>
>     Subject: Re: [protege-discussion] Jena and Complex SPARQL query
>     Message-ID: <508E2AA5.3030300 at stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=508E2AA5.3030300@stanford.edu>>
>     Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>
>     On 10/22/2012 05:56 AM, Gabriela Medina wrote:
>     > Hello,
>     >
>     > I've been recently using Jena and SPARQL and I have one question.
>
>     For any jena questions I would suggest the mailing list at
>     jena.sourceforge.net.
>
>     > I tried to make a query in which ONE variable (in my case named
>     > "Process") is linked to TWO other variables (both are variables
>     of the
>     > same class. In my case this class is called Symptoms).
>
>     Your example looked a bit complicated so I simplified it to see if I
>     understand your issue.? I made a small ontology (attached that
>     includes
>     the following abox assertions:
>
>     Individual: x
>     ? ???Types:
>     ? ? ? ???A
>     ? ???Facts:
>     ? ? ? p? y,
>     ? ? ? p? z
>     ?
>     Individual: y
>     ? ???Types:
>     ? ? ? ???B
>     ? ???Facts:
>     ? ? ? q? 1
>     ? ???
>     Individual: z
>     ? ???Types:
>     ? ? ? ???B
>     ? ???Facts:
>     ? ? ? q? 2
>     ???
>
>     I then ran the following sparql query
>
>     PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
>     PREFIX owl: <http://www.w3.org/2002/07/owl#>
>     PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
>     PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
>     PREFIX : <http://protege.org/ontologies/TwoVariables#>
>     SELECT ?a ?b ?c
>     ??? WHERE {
>     ? ? ? ?a :p ?b.
>     ? ? ? ?b :q "1"^^xsd:integer.
>     ? ? ? ?a :p ?c.
>     ? ? ? ?c :q "2"^^xsd:integer.
>     }
>
>
>     and got one resulting row consisting of "x, y, z".? This seems to be
>     what you are looking for?
>
>     -Timothy
>
>     > I need to describe some characteristics or some relations that
>     Process
>     > have with other classes and at the same time I have to describe
>     > characteristics or some relations that each of the Symptoms have.
>     >
>     > To perform this query I have tried two alternatives but I have no
>     > success. Here I present the two alternatives:
>     > 1.The first alternative is a SELECT Query written as follow:
>     >
>     > String queryString =
>     > "PREFIX ONTO: http://www.owl-ontologies.com/Ontology1326704817.owl#
>     > PREFIX owl: <http://www.w3.org/2002/07/owl#>
>     > PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
>     > PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
>     > SELECT ?Symptome1 ?Symptome2 ?Deviation1 ?Deviation2 ?Flux1 ?Flux2
>     > ?Propriete1 ?Propriete2 ?Process
>     > {{?Process rdf:type ONTO:MoteurDiesel .
>     > ?Process ONTO:presente ?Symptome1 .
>     > ?Symptome1 rdf:type ONTO:Symptome .
>     > ?Symptome1 ONTO:possedeCaracteristiqueDeviation?Deviation1 .
>     > FILTER regex(str(?Deviation1),
>     > 'http://www.owl-ontologies.com/Ontology1326704817.owl#Moins'
>     <http://www.owl-ontologies.com/Ontology1326704817.owl#Moins%27>) .
>     > ?Symptome1 ONTO:possedeCaracteristiqueFlux?Flux1 .
>     > ?Flux1 rdf:type ONTO:Huile .
>     > ?Symptome1 ONTO:possedeCaracteristiquePropriete ?Propriete1 .
>     > ?Propriete1 rdf:type ONTO:PressionFonctionnement} .
>     > {?Process ONTO:presente ?Symptome2.
>     > ?Symptome2 rdf:type ONTO:Symptome .
>     > ?Symptome2 ONTO:possedeCaracteristiqueDeviation?Deviation2 .
>     > FILTER regex(str(?Deviation),
>     > 'http://www.owl-ontologies.com/Ontology1326704817.owl#Plus'
>     <http://www.owl-ontologies.com/Ontology1326704817.owl#Plus%27>) .
>     > ?Symptome2 ONTO:possedeCaracteristiqueFlux?Flux2 .
>     > ?Flux2 rdf:type ONTO:Huile .
>     > ?Symptome2 ONTO:possedeCaracteristiquePropriete ?Propriete2 .
>     > ?Propriete2 rdf:type ONTO:Temperature}}";
>     > *try*{
>     > Query query = QueryFactory./create/(queryString);
>     > QueryExecution qexecRule = QueryExecutionFactory./create/(query,
>     > infmodel);
>     > ResultSet resultset = qexecRule.execSelect();
>     > Model _result_ = qexecRule.execConstruct();
>     > *for*(; resultset.hasNext() ; ) {
>     > QuerySolution soln= resultset.nextSolution();
>     > RDFNode x = soln.getResource("Process");
>     > RDFNode y = soln.getResource("Symptome1");
>     > RDFNode z = soln.getResource("Symptome2");
>     > System./out/.println(x.toString()+ " "+ y.toString()+ " "+
>     z.toString());
>     > }
>     > The result of this query is an error saying: "Insufficient
>     memory..."
>     > 2.The second alternative is a CONSTRUCT Query:
>     > String queryString =
>     > "PREFIX ONTO:
>     <http://www.owl-ontologies.com/Ontology1326704817.owl#>
>     > PREFIX owl: <http://www.w3.org/2002/07/owl#>
>     > PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
>     > PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
>     > CONSTRUCT {?Process ONTO:presente ?Symptome1; ONTO:presente
>     ?Symptome2}
>     > WHERE{
>     > {?Process rdf:type ONTO:MoteurDiesel .
>     > ?Process ONTO:presente ?Symptome1 .
>     > ?Symptome1 rdf:type ONTO:Symptome .
>     > ?Symptome1 ONTO:possedeCaracteristiqueDeviation?Deviation1 .
>     > FILTER regex(str(?Deviation1),
>     > 'http://www.owl-ontologies.com/Ontology1326704817.owl#Moins'
>     <http://www.owl-ontologies.com/Ontology1326704817.owl#Moins%27>) .
>     > ?Symptome1 ONTO:possedeCaracteristiqueFlux?Flux1 .
>     > ?Flux1 rdf:type ONTO:Huile .
>     > ?Symptome1 ONTO:possedeCaracteristiquePropriete ?Propriete1 .
>     > ?Propriete1 rdf:type ONTO:PressionFonctionnement} .
>     > {?Process ONTO:presente ?Symptome2.
>     > ?Symptome2 rdf:type ONTO:Symptome .
>     > ?Symptome2 ONTO:possedeCaracteristiqueDeviation?Deviation2 .
>     > FILTER regex(str(?Deviation),
>     > 'http://www.owl-ontologies.com/Ontology1326704817.owl#Plus'
>     <http://www.owl-ontologies.com/Ontology1326704817.owl#Plus%27>) .
>     > ?Symptome2 ONTO:possedeCaracteristiqueFlux?Flux2 .
>     > ?Flux2 rdf:type ONTO:Huile .
>     > ?Symptome2 ONTO:possedeCaracteristiquePropriete ?Propriete2 .
>     > ?Propriete2 rdf:type ONTO:Temperature}}";
>     > *try*{
>     > Query query = QueryFactory./create/(queryString);
>     > QueryExecution qexecRule = QueryExecutionFactory./create/(query,
>     > infmodel);
>     > Model result = qexecRule.execConstruct();
>     > {result.write(System./out/, "Result");
>     > }
>     > The result of this query is: "Attempt to have ResultSet from a
>     > CONSTRUCT query"
>     > Do you have any suggestion to obtain the correct query for ONE
>     > VARIABLE link to TWO OTHERS each one with their relations?
>     >
>     > Thanks in advanced for your reply and for your help,
>     > Kind regards,
>     > Gabriela
>     >
>     >
>     > _______________________________________________
>     > protege-discussion mailing list
>     > protege-discussion at lists.stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=protege-discussion@lists.stanford.edu>
>     > https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>     >
>     > Instructions for unsubscribing:
>     http://protege.stanford.edu/doc/faq.html#01a.03
>
>     -------------- next part --------------
>     An HTML attachment was scrubbed...
>     URL:
>     <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20121029/1c14392f/attachment.html>
>     -------------- next part --------------
>     A non-text attachment was scrubbed...
>     Name: TwoVariables.owl
>     Type: application/rdf+xml
>     Size: 3598 bytes
>     Desc: not available
>     URL:
>     <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20121029/1c14392f/attachment.owl>
>
>     ------------------------------
>
>     _______________________________________________
>     protege-discussion mailing list
>     protege-discussion at lists.stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=protege-discussion@lists.stanford.edu>
>     https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
>
>     End of protege-discussion Digest, Vol 75, Issue 30
>     **************************************************
>     -------------- next part --------------
>     An HTML attachment was scrubbed...
>     URL:
>     <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20121106/8f0b6745/attachment.html>
>
>     ------------------------------
>
>     _______________________________________________
>     protege-discussion mailing list
>     protege-discussion at lists.stanford.edu
>     <http://us.mc1625.mail.yahoo.com/mc/compose?to=protege-discussion@lists.stanford.edu>
>     https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
>
>     End of protege-discussion Digest, Vol 76, Issue 8
>     *************************************************
>
>
>
> _______________________________________________
> protege-discussion mailing list
> protege-discussion at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20121112/21486b25/attachment-0001.html>


More information about the protege-discussion mailing list