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] protege-owl Digest, Vol 13, Issue 22

Kamaljit Kaur Bimrah (Staff Acc) K.K.Bimrah at uel.ac.uk
Thu Aug 9 02:36:19 PDT 2007


Hello,
 
I cant get OWLViz to work.  I have tried and its not working.  I know the tab
is on there, but it doenst allow me to add anything...pls help and guide...
 
Another thing I am using the OWL language...but how do I implement that in
the tool? Or is it that when I add a concept, there is a OWL statement added
automatically for that?  I just dont understand how the language is used in
this...
 
Sorry if these seem very basic questions...im stuck!
 
Thanks!
Kam

________________________________

From: protege-owl-bounces at mailman.stanford.edu on behalf of
protege-owl-request at mailman.stanford.edu
Sent: Thu 09/08/2007 02:24
To: protege-owl at mailman.stanford.edu
Subject: protege-owl Digest, Vol 13, Issue 22



Send protege-owl mailing list submissions to
        protege-owl at lists.stanford.edu

To subscribe or unsubscribe via the World Wide Web, visit
        https://mailman.stanford.edu/mailman/listinfo/protege-owl
or, via email, send a message with subject or body 'help' to
        protege-owl-request at lists.stanford.edu

You can reach the person managing the list at
        protege-owl-owner at lists.stanford.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of protege-owl digest..."


Today's Topics:

   1. Support to remaining restrictions (Hrishikesh Sharma)
   2. Protege Server for Multi User (Cesbron, Brice)
   3. RDF sequences and bags (Larry Compton)
   4. problem with properties range (Andres Betancourt)
   5. Re: problem with SWRLRuleEngineBridge (Martin O'Connor)
   6. Re: Support to remaining restrictions (Martin O'Connor)
   7. Problems with "rdf:type" constructs (Roberto Alves Gueleri)


----------------------------------------------------------------------

Message: 1
Date: Wed, 8 Aug 2007 20:50:14 +0530
From: "Hrishikesh Sharma" <hrishikesh.sharma at gmail.com>
Subject: [protege-owl] Support to remaining restrictions
To: protege-owl at lists.stanford.edu
Message-ID:
        <48e231150708080820y61588209oa92d8428ad75407f at mail.gmail.com>
Content-Type: text/plain; charset="iso-2022-jp"

I have been using oneOf construct of OWL in conjunction with DataRange
specification. However, if I use a literal which is "one of" the data
ranges, the SWRL rule does not fire. E.g., the use of string literal in
following gives problem in firing of rule, until that clause is removed:

Employee(?a)  ? hasWorkPlan(?a, ?b)  ? *hasName(?b, "Travel") * ? ... -> ...

 Presumably this is happening because the SWRL Jess Bridge right now does
not export all restrictions to JESS. The last question in SWRL Rule Engine
Bridge FAQ refers to that. Such limitation makes my work a bit crude. May I
know what is the priority of fixing this limitation?
Regards
        Hrishikesh.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://mailman.stanford.edu/pipermail/protege-owl/attachments/20070808/d03dc5
71/attachment-0001.htm

------------------------------

Message: 2
Date: Wed, 8 Aug 2007 17:22:55 +0200
From: "Cesbron, Brice" <brice.cesbron at capgemini.com>
Subject: [protege-owl] Protege Server for Multi User
To: <protege-owl at lists.stanford.edu>
Message-ID:
 
<54BA35EE6F329E44A458713577DE479F13DE6C at CORPMAIL33.corp.capgemini.com>
Content-Type: text/plain; charset="us-ascii"


Hello,

I have installed Protege in server mode, on a Linux - with the
collaborative ontologies development option, described here :
http://protege.stanford.edu/doc/collab-protege/

The server is running well, I have checked it by lauching a client
session on the server (as explained in the tutorial).
But, when I try to connect to the server form an other pc on the
network, I've got thie message
    "Failed to create a session because of either: an invalid
username/password combination, or a firewall problem"

Can you explain me what happens please?

Moreover, how can I define other users with specials passwords (one by
user)?

Thanks in advance,
Best Regards.

Brice Cesbron | Capgemini SUD | Marseille | France
Responsable OWL | OSS Partner Team
Tel : +33 4 91 16 57 77 |
90, Chemin du Roy d'Espagne | BP23 | 13275 Marseille cedex 09



This message contains information that may be privileged or confidential and
is the property of the Capgemini Group. It is intended only for the person to
whom it is addressed. If you are not the intended recipient,  you are not
authorized to read, print, retain, copy, disseminate,  distribute, or use
this message or any part thereof. If you receive this  message in error,
please notify the sender immediately and delete all  copies of this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://mailman.stanford.edu/pipermail/protege-owl/attachments/20070808/185e69
78/attachment-0001.htm

------------------------------

Message: 3
Date: Wed, 08 Aug 2007 14:55:15 -0400
From: Larry Compton <lawrence_compton at sra.com>
Subject: [protege-owl] RDF sequences and bags
To: protege-owl at lists.stanford.edu
Message-ID: <46BA1193.6060809 at sra.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

I'm trying to create RDF sequences and bags in an OWL file using
Protege. So far, I can't figure how to do it. I've seen tantalizing
references to Seq and Bag in the Preferences Visibility tab, but I don't
know how to create an individual. If someone would point me at
appropriate documentation or clue me in on how to do this, I would
appreciate it. Thanks in advance.

Larry Compton



------------------------------

Message: 4
Date: Wed, 8 Aug 2007 16:39:33 -0500
From: "Andres Betancourt" <listaprotege at gmail.com>
Subject: [protege-owl] problem with properties range
To: protege-owl at lists.stanford.edu
Message-ID:
        <5ada5d0a0708081439k1c3f8340u918d6400340ee473 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

 hi all

i am currently working on a plugin for protege 3.3 and i would like to know
how do i notice when something was added or removed from de range of a
property.
with an object of type PropertyAdapter i know when somenthing is added or
removed from the domain with the methods unionDomainClassAdded and
unionDomainClassRemoved
but how is this done with the range?

thank you in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://mailman.stanford.edu/pipermail/protege-owl/attachments/20070808/00526c
b2/attachment-0001.htm

------------------------------

Message: 5
Date: Wed, 08 Aug 2007 14:51:47 -0700
From: Martin O'Connor <martin.oconnor at stanford.edu>
Subject: Re: [protege-owl] problem with SWRLRuleEngineBridge
To: protege-owl at lists.stanford.edu
Message-ID: <20070808145147.oeq1opk1es8cg0o0 at webmail.stanford.edu>
Content-Type: text/plain;       charset=ISO-8859-1;     DelSp="Yes";
        format="flowed"

The getAssertedProperties call work fine for me with your ontology. 
Lots of code depends on the getAssertedProperties call (including the 
SWRLJessTab displays) so I would rewrite your printing code (which is 
very confusing).

Martin

  (and Quoting Hrishikesh Sharma <hrishikesh.sharma at gmail.com>:

> There seems to be a serious bug?? with with getAssertedProperties(). I
> was suggested(see the mail chain below) to extend SWRLJessBridge class
> to do what I required.
> I am using the attached ontology and sample instances to run some rules.
> When I use the Protege editor(front-end) and use JessTab and execute
> JESS rule engine, I can see all the asserted properties, right ones,
> in the appropriate pane as follows.
>
> (assert (needsBatAlarm Lenovo "true"))
> (assert (needsCharging Lenovo "true"))
> (assert (possCharging Lenovo "true"))
>
> While when I use SWRLJessBridge and enumerate all the asserted
> properties, I get garbled output.
>
> Lenovo
> true
> Lenovo
> true
> Didier_Bourse
> true
> Lenovo
> true
>
> The subclass that I implemented on your suggestion is also attached. I
> am almost sure it is a bug with the bridge code. I desperately need to
> have/demonstrate a standalone application in Java which uses
> SWRLJessBridge. Please help.
>
> Regards
>          Hrishikesh.
>
> On 7/25/07, Martin O'Connor <martin.oconnor at stanford.edu> wrote:
>>
>>
>> The bridge is documented extensively here:
>> http://protege.cim3.net/cgi-bin/wiki.pl?SWRLRuleEngineBridgeFAQ
>>
>> You can access protected methods using the standard Java subclassing
>> technique, viz:
>>
>>
>>
>> public class MyBridge extends JessRuleEngineBridge
>>
>> {
>>
>>    .
>>
>>    public Set<RuleInfo> myGetImportedSWRLRules() { return
>> getImportedSWRLRules(); }
>>
>>
>>
>> etc.
>>
>>
>>
>> Martin
>>
>>
>>
>>   _____
>>
>> From: protege-owl-bounces at lists.stanford.edu
>> [mailto:protege-owl-bounces at lists.stanford.edu] On Behalf Of Hrishikesh
>> Sharma
>> Sent: Wednesday, July 25, 2007 7:21 AM
>> To: protege-owl at lists.stanford.edu
>> Subject: Re: [protege-owl] problem with SWRLRuleEngineBridge
>>
>>
>> Essentially my problem is (at least) twofold:
>> 1. The javadocs for SWRLRuleEngineBridge and SWRLJessBridge give too less
>> information. Various methods I try to invoke based on some approximate
>> understanding misfire!
>> 2. How to get hold of the delta between new overall knowledge after a Jess
>> run, and the old knowledge in Java code. In the front end, I am able to do
>> same by examining the "Asserted Properties/Individuals" sub-tab within
Jess
>> Tab.
>>
>>
>> Sincerely,
>>
>>         Hrishikesh.
>>
>>
>> On 7/24/07, Martin O'Connor <martin.oconnor at stanford.edu> wrote:
>>
>>
>> You are trying to call a protected method in this code fragment.
>> Invoking through the SWRLJessBridge does not make it unprotected - only
>> code inside the SWRLJessBridge can access it.
>>
>> Martin
>>
>> Hrishikesh Sharma wrote:
>>
>> > Hi,
>> >     I am having problem with getAssertedProperties() method of
>> > SWRLRuleEngineBridge Class. From the javadoc, I gather it is a
>> > protected method. However, in the simple java code file attached,
>> > where I invoke this method from a subclass called SWRLJessBridge, I
>> > get a compilation error
>> >
>> > RunSwrlOnOnt.java:30: getAssertedProperties() has protected access in
>> > edu.stanford.smi.protegex.owl.swrl.bridge.SWRLRuleEngineBridge
>> >          Collection ass_p = bridge.getAssertedProperties();
>> >                                   ^
>> > It is a bit surprising, for SWRLJessBridge is supposed to be subclass
>> > and hence have access to protected methods of the superclass from
>> > within objects of that type. Am I missing something trivial here? Or
>> > is it a bug(missing 'extends' definition for SWRLJessBridge)? Or is
>> > the method getAssertedProperties() an abstract method?
>> >
>> > Sincerely,
>> >        Hrishikesh
>




------------------------------

Message: 6
Date: Wed, 08 Aug 2007 15:02:55 -0700
From: Martin O'Connor <martin.oconnor at stanford.edu>
Subject: Re: [protege-owl] Support to remaining restrictions
To: protege-owl at lists.stanford.edu
Message-ID: <20070808150255.o7p5jyrt96gw40sw at webmail.stanford.edu>
Content-Type: text/plain;       charset=ISO-8859-1;     DelSp="Yes";
        format="flowed"

I don't understand how you are using oneOf - it takes a list of OWL 
individuals, not a data range.

Martin

Quoting Hrishikesh Sharma <hrishikesh.sharma at gmail.com>:

> I have been using oneOf construct of OWL in conjunction with DataRange
> specification. However, if I use a literal which is "one of" the data
> ranges, the SWRL rule does not fire. E.g., the use of string literal in
> following gives problem in firing of rule, until that clause is removed:
>
> Employee(?a)  ? hasWorkPlan(?a, ?b)  ? *hasName(?b, "Travel") * ? ... ->
...
>
>  Presumably this is happening because the SWRL Jess Bridge right now does
> not export all restrictions to JESS. The last question in SWRL Rule Engine
> Bridge FAQ refers to that. Such limitation makes my work a bit crude. May I
> know what is the priority of fixing this limitation?
> Regards
>         Hrishikesh.
>




------------------------------

Message: 7
Date: Wed, 8 Aug 2007 22:24:17 -0300
From: "Roberto Alves Gueleri" <r.a.gueleri at gmail.com>
Subject: [protege-owl] Problems with "rdf:type" constructs
To: protege-owl at lists.stanford.edu
Message-ID:
        <15ed6c8f0708081824g34262406ga36ccd8e602cf4f0 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi!!!

I have experienced some troubles in attempting to work with owl ontologies
containing metaclasses, dealing with "rdf:type" constructs.

An example of this problem:

I've the following ontology, which contains a metaclass called "MetaClassA",
three classes ("ClassA", "ClassB" and "ClassC"), and an instance of "ClassA"
called "IndividualA". Note that "MetaClassA" is an occurrence of
"owl:Class", so it is an owl class, but it plays the role of a metaclass by
asserting that the other three classes ("ClassA", "ClassB" and "ClassC") are
its occurrences, by means of "rdf:type" constructs.



<?xml version="1.0"?>
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns="http://www.owl-ontologies.com/Ontology1186578166.owl#"
  xml:base="http://www.owl-ontologies.com/Ontology1186578166.owl">
  <owl:Ontology rdf:about=""/>

  <owl:Class rdf:ID="MetaClassA"/>

  <owl:Class rdf:ID="ClassA">
    <rdf:type rdf:resource="#MetaClassA"/>
  </owl:Class>
  <owl:Class rdf:ID="ClassB">
    <rdf:type rdf:resource="#MetaClassA"/>
  </owl:Class>
  <owl:Class rdf:ID="ClassC">
    <rdf:type rdf:resource="#MetaClassA"/>
  </owl:Class>

  <ClassA rdf:ID="IndividualA"/>

</rdf:RDF>



If I try to open this ontology in Prot?g?, all seems to be ok. The classes
and instances appears correctly. But if I simply insert a new class,
"ClassD", as being an occurrence of "owl:Class", of course the owl file is
changed to append the new class, but the original "rdf:type" constructs are
changed too. Below I show the new ontology created by Prot?g?:



<?xml version="1.0"?>
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns="http://www.owl-ontologies.com/Ontology1186578166.owl#"
  xml:base="http://www.owl-ontologies.com/Ontology1186578166.owl">
  <owl:Ontology rdf:about=""/>

  <owl:Class rdf:ID="MetaClassA"/>

  <MetaClassA rdf:ID="ClassA">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
  </MetaClassA>
  <MetaClassA rdf:ID="ClassB">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
  </MetaClassA>
  <MetaClassA rdf:ID="ClassC">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
  </MetaClassA>
  <owl:Class rdf:ID="ClassD"/>

  <ClassA rdf:ID="IndividualA"/>

</rdf:RDF>

<!-- Created with Protege (with OWL Plugin 3.2.1, Build 365)
http://protege.stanford.edu <http://protege.stanford.edu/>  -->



Note that constructions of the form:

  <owl:Class rdf:ID="ClassA">
    <rdf:type rdf:resource="#MetaClassA"/>
  </owl:Class>

were automatically changed by Prot?g? to the form:

  <MetaClassA rdf:ID="ClassA">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
  </MetaClassA>

Now if I try to open the new ontology, some errors will be reported by
Prot?g? and the ontology won't open. Below the errors reported are showed:



There were errors at performing operation.

1. Exception class
edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParserException.
Message: The resource IndividualA has the rdf:type ClassA which is not a
class but a edu.stanford.smi.protegex.owl.model.impl.DefaultOWLIndividual

2. Errors at loading OWL file from file:/C:/betao/metaclasses.owl

Please consider running the file through an RDF or OWL validation service
such as:
  - RDF Validator: http://www.w3.org/RDF/Validator
  - OWL Validator: http://phoebus.cs.man.ac.uk:9999/OWL/Validator

See console and log for more details.



As can be viewed at the end of the last ontology, I have used Prot?g? 3.2.1.
I tried to use other versions of Prot?g? (including Prot?g? 4.0 alpha) and
problems persist on the use of "rdf:type" constructs.

I think it's great if Prot?g? could support those "rdf:type" constructs, on
the freedom context of OWL-FULL. In my work, I'm facing a problem where a
good solution appear by using metaclasses. A classic example: I'm interested
in define a concept "Homo sapiens", so I create a class "HomoSapiens", whose
instances could be any person in the world; but this class must be an
instance of a higher order class, "Species", because Homo sapiens is a
species; therefore the class "Species" will be a metaclass. Seeing classes
or concepts as sets, cases like these appear when we have to declare sets,
sets of sets ("meta-sets"), sets of "meta-sets" ("meta-meta-sets"), and so
on...

Thanks!!!...

Roberto Alves Gueleri

r.a.gueleri at gmail.com

(Student of Computer Science at the State University of S?o Paulo (UNESP) -
Brazil)
(Working on a research project dealing with the uses of ontologies to
describe species of foraminifera)
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://mailman.stanford.edu/pipermail/protege-owl/attachments/20070808/cdc192
0b/attachment.htm

------------------------------

_______________________________________________
protege-owl mailing list
protege-owl at lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/protege-owl


End of protege-owl Digest, Vol 13, Issue 22
*******************************************






More information about the protege-owl mailing list