Re: protege-user Digest, Vol 3, Issue 22

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: protege-user Digest, Vol 3, Issue 22

Najet Tayeb
hello
I create an ontology with protegé 3.4.8 and I create some swrl rules. I 'm using Jena Api but I don't Know how I use/integrate pellet in Jena  . Please help me and thank you in advance. 
On Thursday, April 10, 2014 9:03 PM, "[hidden email]" <[hidden email]> wrote:
Send protege-user mailing list submissions to
    [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
    https://mailman.stanford.edu/mailman/listinfo/protege-user
or, via email, send a message with subject or body 'help' to
    [hidden email]

You can reach the person managing the list at
    [hidden email]

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


Today's Topics:

  1. Re: Best way to combine Ontology .owl with separate RDF .ttl?
      (Tim Williams)
  2. SWRL rules in Netbeans (maha maalej)
  3. Re: SWRL rules in Netbeans (Ramzan, Asia (Student))
  4. Blank nodes duplicating in Protege (Antti Tuuri)
  5. Re: SWRL rules in Netbeans (Ioannis Panagiotopoulos)


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

Message: 1
Date: Wed, 9 Apr 2014 16:00:10 -0400
From: Tim Williams <[hidden email]>
To: User support for WebProtege and Protege Desktop
    <[hidden email]>
Subject: Re: [protege-user] Best way to combine Ontology .owl with
    separate RDF .ttl?
Message-ID:
    <CA+pMusvt=MiiKEi-8tsgNRX4xZ1ex_1FAWWPV_sPjgyH+[hidden email]>
Content-Type: text/plain; charset="iso-8859-1"

Thank you Olivier.

DataLift appears to have potential. I have joined the user mail list and
asked if it can apply an ontology saved on my local machine.  All screen
shots show ontology references as URL sources - perhaps a workaround would
be to serve it of my localhost with Tomcat?

I am also interested in other alternatives if anyone else has suggestions.

Cheers,

Tim


On Tue, Apr 8, 2014 at 4:53 PM, Olivier Rossel <[hidden email]>wrote:

> This is the point of the datalift project.
> http://datalift.org/en/node/3
>
> May be you want to have a look at this video:
> https://www.youtube.com/watch?v=dMvEPpUZJqE
>
> Feel free to contact Gabriel Kepeklian on Twitter (@g_kn)
>
>
> On Tue, Apr 8, 2014 at 10:21 PM, Tim Williams <[hidden email]>wrote:
>
>> Hello everyone,
>>
>> I have created a very simple ontology in Protege as a "working example"
>> to help me learn my way around OWL. I want to apply that ontology to a
>> separate spreadsheet of data that I convert from .csv to RDF (.ttl).  I
>> will then upload the RDF into Fuseki as a SPARQL endpoint on my local
>> machine to play with SPARQL.
>>
>> What is the best way to merge the RDF information in the .owl ontology
>> with the observations from my spreadsheet?  I also want to ensure my terms
>> in the ontology match those in the RDF representation of the spreadsheet
>> data.
>>
>> I've found lots of documentation online describing both Ontologies and
>> Observations as RDF but little on combining the two unless you are creating
>> and querying data directly within Protege (which would be rare in a real
>> life application).
>>
>> Cheers!
>>
>> Tim W.
>>
>> _______________________________________________
>> protege-user mailing list
>> [hidden email]
>> https://mailman.stanford.edu/mailman/listinfo/protege-user
>>
>>
>
> _______________________________________________
> protege-user mailing list
> [hidden email]
> https://mailman.stanford.edu/mailman/listinfo/protege-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-user/attachments/20140409/6b0bfe45/attachment-0001.html>

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

Message: 2
Date: Thu, 10 Apr 2014 13:27:21 +0200
From: maha maalej <[hidden email]>
To: [hidden email]
Subject: [protege-user] SWRL rules in Netbeans
Message-ID:
    <CAE=rKPp79uFKvEztRc7c9f_+=[hidden email]>
Content-Type: text/plain; charset="iso-8859-1"

Hello
I create an ontology using Protege 3.4.8 and I create some SWRL rules.
I need to reason about these rules using Netbeans.
Which API can I use and how to integrate it in Netbeans?
Thank you for your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-user/attachments/20140410/cb005c67/attachment-0001.html>

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

Message: 3
Date: Thu, 10 Apr 2014 11:43:36 +0000
From: "Ramzan, Asia (Student)" <[hidden email]>
To: User support for WebProtege and Protege Desktop
    <[hidden email]>
Subject: Re: [protege-user] SWRL rules in Netbeans
Message-ID:
    <[hidden email]>
   
Content-Type: text/plain; charset="us-ascii"

Dear,


You can down load " Download owlapi-distribution-3.4.10.jar (2.5 MB)<http://sourceforge.net/projects/owlapi/files/latest/download?source=files>?" file from http://sourceforge.net/projects/owlapi/files/ and add it into libraries of NetBeans as .jar file.


Best Regards,


Asia

OWL API - Browse Files at SourceForge.net
A Java interface and implementation for the W3C Web Ontology Language (OWL), used to represent Semantic Web ontologies. The API is focused towards ...
Read more...<http://sourceforge.net/projects/owlapi/files/>



________________________________
From: protege-user <[hidden email]> on behalf of maha maalej <[hidden email]>
Sent: 10 April 2014 12:27
To: [hidden email]
Subject: [protege-user] SWRL rules in Netbeans

Hello
I create an ontology using Protege 3.4.8 and I create some SWRL rules.
I need to reason about these rules using Netbeans.
Which API can I use and how to integrate it in Netbeans?
Thank you for your help.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-user/attachments/20140410/de4ff1b4/attachment-0001.html>

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

Message: 4
Date: Thu, 10 Apr 2014 15:43:14 +0300
From: Antti Tuuri <[hidden email]>
To: [hidden email]
Cc: "[hidden email]" <[hidden email]>
Subject: [protege-user] Blank nodes duplicating in Protege
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi,

we have an ontology which was originally created manually as an rdf
schema and is now being updated using Protege, and the problem is that
blank nodes in a property are duplicated each time the ontology is
saved. This means that the ontology grows exponentially in size. I
created a simplified rdf schema (below) for reproducing the issue. We
use Protege 4.3 on Windows 7, but I can reproduce the issue with older
versions of Protege too.

1. Paste the rdf schema into a file
2. Open the file with Protege
3. Save the file as RDF/XML using "Save as" (at this point the property
is transformed into an annotation property and an object property, which
isn't a problem)
4. Open the saved file and save again as RDF/XML using "Save as"

The resulting ontology contains duplicate ex:annotation -properties
which contains the blank node. This doesn't happen if the resource is
named. Any ideas how to solve this?

Rdf schema:

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xml:base="http://www.profium.com/test/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:ex="http://www.example.org/" xmlns="http://www.profium.com/test/">
<rdf:Property rdf:about="sample">
<rdfs:label xml:lang="en">Sample property</rdfs:label>
<rdfs:domain rdf:resource="rdfs:Resource"/>
<rdfs:range rdf:resource="rdfs:Resource"/>
<ex:annotation>
<rdf:Description />
</ex:annotation>
</rdf:Property>
</rdf:RDF>


Best Regards,

Antti

 

--
Antti Tuuri <[hidden email]>
Profium, Lars Sonckin kaari 12, 02600 Espoo, Finland
Tel. +358 (0)9 855 98 000 Fax. +358 (0)9 855 98 002
Mob. +358 (0)50 570 5097  Internet: http://www.profium.com



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

Message: 5
Date: Thu, 10 Apr 2014 15:58:12 +0300
From: Ioannis Panagiotopoulos <[hidden email]>
To: User support for WebProtege and Protege Desktop
    <[hidden email]>
Subject: Re: [protege-user] SWRL rules in Netbeans
Message-ID:
    <CAP2XDvDR_yYECya4a_U7c=DJDoSMkQ=[hidden email]>
Content-Type: text/plain; charset="iso-8859-1"

Hello,

you can also use jena api (
http://apache.otenet.gr/dist//jena/binaries/apache-jena-2.11.1.zip)  and
with pellet (http://clarkparsia.com/pellet/faq/using-pellet-in-jena/) you
can reason over the swrl rules. The same with owl api, you just add the jar
files from jena distribution in your netbeans libraries folder


On Thu, Apr 10, 2014 at 2:43 PM, Ramzan, Asia (Student) <[hidden email]
> wrote:

>  Dear,
>
>
>  You can down load " *Download owlapi-distribution-3.4.10.jar (2.5 MB)
> <http://sourceforge.net/projects/owlapi/files/latest/download?source=files>*"
> file from http://sourceforge.net/projects/owlapi/files/ and add it into
> libraries of NetBeans as .jar file.
>
>
>  Best Regards,
>
>
>  Asia
>    OWL API - Browse Files at SourceForge.net
>  A Java interface and implementation for the W3C Web Ontology Language
> (OWL), used to represent Semantic Web ontologies. The API is focused
> towards ...
>  Read more... <http://sourceforge.net/projects/owlapi/files/>
>
>
>  ------------------------------
> *From:* protege-user <[hidden email]> on behalf
> of maha maalej <[hidden email]>
> *Sent:* 10 April 2014 12:27
> *To:* [hidden email]
> *Subject:* [protege-user] SWRL rules in Netbeans
>
>  Hello
> I create an ontology using Protege 3.4.8 and I create some SWRL rules.
> I need to reason about these rules using Netbeans.
> Which API can I use and how to integrate it in Netbeans?
> Thank you for your help.
>
>
> _______________________________________________
> protege-user mailing list
> [hidden email]
> https://mailman.stanford.edu/mailman/listinfo/protege-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-user/attachments/20140410/5f03e72f/attachment-0001.html>

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

Subject: Digest Footer

_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user


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

End of protege-user Digest, Vol 3, Issue 22
*******************************************



_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user
Reply | Threaded
Open this post in threaded view
|

Re: protege-user Digest, Vol 3, Issue 22

Tania Tudorache
Here are some answers:

http://clarkparsia.com/pellet/faq/using-pellet-in-jena/
http://jena.apache.org/documentation/inference/

Google knows :)

If you have further questions on using Jena, I suggest posting them on the Jena mailing list.

Tania



On 04/10/2014 04:03 PM, Najet Tayeb wrote:
hello
I create an ontology with protegé 3.4.8 and I create some swrl rules. I 'm using Jena Api but I don't Know how I use/integrate pellet in Jena  . Please help me and thank you in advance. 
On Thursday, April 10, 2014 9:03 PM, [hidden email] [hidden email] wrote:
Send protege-user mailing list submissions to
    [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
    https://mailman.stanford.edu/mailman/listinfo/protege-user
or, via email, send a message with subject or body 'help' to
    [hidden email]

You can reach the person managing the list at
    [hidden email]

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


Today's Topics:

  1. Re: Best way to combine Ontology .owl with separate RDF .ttl?
      (Tim Williams)
  2. SWRL rules in Netbeans (maha maalej)
  3. Re: SWRL rules in Netbeans (Ramzan, Asia (Student))
  4. Blank nodes duplicating in Protege (Antti Tuuri)
  5. Re: SWRL rules in Netbeans (Ioannis Panagiotopoulos)


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

Message: 1
Date: Wed, 9 Apr 2014 16:00:10 -0400
From: Tim Williams <[hidden email]>
To: User support for WebProtege and Protege Desktop
    <[hidden email]>
Subject: Re: [protege-user] Best way to combine Ontology .owl with
    separate RDF .ttl?
Message-ID:
    <CA+pMusvt=MiiKEi-8tsgNRX4xZ1ex_1FAWWPV_sPjgyH+[hidden email]>
Content-Type: text/plain; charset="iso-8859-1"

Thank you Olivier.

DataLift appears to have potential. I have joined the user mail list and
asked if it can apply an ontology saved on my local machine.  All screen
shots show ontology references as URL sources - perhaps a workaround would
be to serve it of my localhost with Tomcat?

I am also interested in other alternatives if anyone else has suggestions.

Cheers,

Tim


On Tue, Apr 8, 2014 at 4:53 PM, Olivier Rossel <[hidden email]>wrote:

> This is the point of the datalift project.
> http://datalift.org/en/node/3
>
> May be you want to have a look at this video:
> https://www.youtube.com/watch?v=dMvEPpUZJqE
>
> Feel free to contact Gabriel Kepeklian on Twitter (@g_kn)
>
>
> On Tue, Apr 8, 2014 at 10:21 PM, Tim Williams <[hidden email]>wrote:
>
>> Hello everyone,
>>
>> I have created a very simple ontology in Protege as a "working example"
>> to help me learn my way around OWL. I want to apply that ontology to a
>> separate spreadsheet of data that I convert from .csv to RDF (.ttl).  I
>> will then upload the RDF into Fuseki as a SPARQL endpoint on my local
>> machine to play with SPARQL.
>>
>> What is the best way to merge the RDF information in the .owl ontology
>> with the observations from my spreadsheet?  I also want to ensure my terms
>> in the ontology match those in the RDF representation of the spreadsheet
>> data.
>>
>> I've found lots of documentation online describing both Ontologies and
>> Observations as RDF but little on combining the two unless you are creating
>> and querying data directly within Protege (which would be rare in a real
>> life application).
>>
>> Cheers!
>>
>> Tim W.
>>
>> _______________________________________________
>> protege-user mailing list
>> [hidden email]
>> https://mailman.stanford.edu/mailman/listinfo/protege-user
>>
>>
>
> _______________________________________________
> protege-user mailing list
> [hidden email]
> https://mailman.stanford.edu/mailman/listinfo/protege-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-user/attachments/20140409/6b0bfe45/attachment-0001.html>

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

Message: 2
Date: Thu, 10 Apr 2014 13:27:21 +0200
From: maha maalej <[hidden email]>
To: [hidden email]
Subject: [protege-user] SWRL rules in Netbeans
Message-ID:
    <CAE=rKPp79uFKvEztRc7c9f_+=[hidden email]>
Content-Type: text/plain; charset="iso-8859-1"

Hello
I create an ontology using Protege 3.4.8 and I create some SWRL rules.
I need to reason about these rules using Netbeans.
Which API can I use and how to integrate it in Netbeans?
Thank you for your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-user/attachments/20140410/cb005c67/attachment-0001.html>

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

Message: 3
Date: Thu, 10 Apr 2014 11:43:36 +0000
From: "Ramzan, Asia (Student)" <[hidden email]>
To: User support for WebProtege and Protege Desktop
    <[hidden email]>
Subject: Re: [protege-user] SWRL rules in Netbeans
Message-ID:
    <[hidden email]>
   
Content-Type: text/plain; charset="us-ascii"

Dear,


You can down load " Download owlapi-distribution-3.4.10.jar (2.5 MB)<http://sourceforge.net/projects/owlapi/files/latest/download?source=files>?" file from http://sourceforge.net/projects/owlapi/files/ and add it into libraries of NetBeans as .jar file.


Best Regards,


Asia

OWL API - Browse Files at SourceForge.net
A Java interface and implementation for the W3C Web Ontology Language (OWL), used to represent Semantic Web ontologies. The API is focused towards ...
Read more...<http://sourceforge.net/projects/owlapi/files/>



________________________________
From: protege-user <[hidden email]> on behalf of maha maalej <[hidden email]>
Sent: 10 April 2014 12:27
To: [hidden email]
Subject: [protege-user] SWRL rules in Netbeans

Hello
I create an ontology using Protege 3.4.8 and I create some SWRL rules.
I need to reason about these rules using Netbeans.
Which API can I use and how to integrate it in Netbeans?
Thank you for your help.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-user/attachments/20140410/de4ff1b4/attachment-0001.html>

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

Message: 4
Date: Thu, 10 Apr 2014 15:43:14 +0300
From: Antti Tuuri <[hidden email]>
To: [hidden email]
Cc: "[hidden email]" <[hidden email]>
Subject: [protege-user] Blank nodes duplicating in Protege
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi,

we have an ontology which was originally created manually as an rdf
schema and is now being updated using Protege, and the problem is that
blank nodes in a property are duplicated each time the ontology is
saved. This means that the ontology grows exponentially in size. I
created a simplified rdf schema (below) for reproducing the issue. We
use Protege 4.3 on Windows 7, but I can reproduce the issue with older
versions of Protege too.

1. Paste the rdf schema into a file
2. Open the file with Protege
3. Save the file as RDF/XML using "Save as" (at this point the property
is transformed into an annotation property and an object property, which
isn't a problem)
4. Open the saved file and save again as RDF/XML using "Save as"

The resulting ontology contains duplicate ex:annotation -properties
which contains the blank node. This doesn't happen if the resource is
named. Any ideas how to solve this?

Rdf schema:

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xml:base="http://www.profium.com/test/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:ex="http://www.example.org/" xmlns="http://www.profium.com/test/">
<rdf:Property rdf:about="sample">
<rdfs:label xml:lang="en">Sample property</rdfs:label>
<rdfs:domain rdf:resource="rdfs:Resource"/>
<rdfs:range rdf:resource="rdfs:Resource"/>
<ex:annotation>
<rdf:Description />
</ex:annotation>
</rdf:Property>
</rdf:RDF>


Best Regards,

Antti

 

--
Antti Tuuri <[hidden email]>
Profium, Lars Sonckin kaari 12, 02600 Espoo, Finland
Tel. +358 (0)9 855 98 000 Fax. +358 (0)9 855 98 002
Mob. +358 (0)50 570 5097  Internet: http://www.profium.com



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

Message: 5
Date: Thu, 10 Apr 2014 15:58:12 +0300
From: Ioannis Panagiotopoulos <[hidden email]>
To: User support for WebProtege and Protege Desktop
    <[hidden email]>
Subject: Re: [protege-user] SWRL rules in Netbeans
Message-ID:
    <CAP2XDvDR_yYECya4a_U7c=DJDoSMkQ=[hidden email]>
Content-Type: text/plain; charset="iso-8859-1"

Hello,

you can also use jena api (
http://apache.otenet.gr/dist//jena/binaries/apache-jena-2.11.1.zip)  and
with pellet (http://clarkparsia.com/pellet/faq/using-pellet-in-jena/) you
can reason over the swrl rules. The same with owl api, you just add the jar
files from jena distribution in your netbeans libraries folder


On Thu, Apr 10, 2014 at 2:43 PM, Ramzan, Asia (Student) <[hidden email]
> wrote:

>  Dear,
>
>
>  You can down load " *Download owlapi-distribution-3.4.10.jar (2.5 MB)
> <http://sourceforge.net/projects/owlapi/files/latest/download?source=files>*"
> file from http://sourceforge.net/projects/owlapi/files/ and add it into
> libraries of NetBeans as .jar file.
>
>
>  Best Regards,
>
>
>  Asia
>    OWL API - Browse Files at SourceForge.net
>  A Java interface and implementation for the W3C Web Ontology Language
> (OWL), used to represent Semantic Web ontologies. The API is focused
> towards ...
>  Read more... <http://sourceforge.net/projects/owlapi/files/>
>
>
>  ------------------------------
> *From:* protege-user <[hidden email]> on behalf
> of maha maalej <[hidden email]>
> *Sent:* 10 April 2014 12:27
> *To:* [hidden email]
> *Subject:* [protege-user] SWRL rules in Netbeans
>
>  Hello
> I create an ontology using Protege 3.4.8 and I create some SWRL rules.
> I need to reason about these rules using Netbeans.
> Which API can I use and how to integrate it in Netbeans?
> Thank you for your help.
>
>
> _______________________________________________
> protege-user mailing list
> [hidden email]
> https://mailman.stanford.edu/mailman/listinfo/protege-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-user/attachments/20140410/5f03e72f/attachment-0001.html>

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

Subject: Digest Footer

_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user


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

End of protege-user Digest, Vol 3, Issue 22
*******************************************




_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user


_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user