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] OWL 2 profile checker in "Ontology metrics"

Thomas Schneider schneidt at cs.man.ac.uk
Mon Jan 11 06:09:21 PST 2010


On 11 Jan 2010, at 13:33, Christoph LANGE wrote:

> Hi Thomas,
>
> 2010-01-08 13:23 Thomas Schneider <schneidt at cs.man.ac.uk>:
>> if you don't mind checking the profile programmatically, you can  
>> use the
>> interface OWLProfile in the OWL API and its implementing classes
>> OWL2DLProfile, OWL2ELProfile, OWL2Profile, OWL2QLProfile,  
>> OWL2RLProfile for
>> this purpose.
>
> Thanks for your help!  It was not completely straightforward, as the
> "profiles" subproject was not yet part of the Maven configuration,  
> and there
> was a broken class (ELPlusPlusProfile) in there.  (I will report  
> this as a
> bug.)

Yes, please.

>  But then I made it work using the code below.  However, I also found
> out that the web service at http://owl.cs.manchester.ac.uk/ 
> validator/ serves
> my needs.

Sorry, I forgot this. I usually do not hesitate to advertise any of  
the Manchester OWL pages here ... ;)

Cheers

Thomas

>
> Cheers,
>
> Christoph
>
> ---
>
> OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
> URI physicalURI = URI.create("...");
> OWLOntology ontology =  
> manager.loadOntologyFromPhysicalURI(physicalURI);
> RLProfile rp = new RLProfile();
> OWLProfileReport opr = rp.checkOntology(ontology, manager);
> System.out.println(opr);
>
> -- 
> Christoph Lange, Jacobs Univ. Bremen, http://kwarc.info/clange,  
> Skype duke4701

+----------------------------------------------------------------------+
|  Dr Thomas Schneider                    schneider (at) cs.man.ac.uk  |
|  School of Computer Science       http://www.cs.man.ac.uk/~schneidt  |
|  Kilburn Building, Room 2.114                 phone +44 161 2756136  |
|  University of Manchester                                            |
|  Oxford Road                                             _///_       |
|  Manchester M13 9PL                                      (o~o)       |
+-----------------------------------------------------oOOO--(_)--OOOo--+

Jubones (pl.n.)
   Awful things bought in Nairobi which never look good at home.

                   Douglas Adams, John Lloyd: The Deeper Meaning of Liff




-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: This is a digitally signed message part
URL: <http://mailman.stanford.edu/pipermail/protege-owl/attachments/20100111/fae16d8c/attachment.sig>


More information about the protege-owl mailing list