From: Matthew H. <mat...@cs...> - 2009-05-29 11:28:48
|
Hi Timothy, In the next version of the OWL API you will be able to do this (it is aligned with the OWL 2 spec) Cheers, Matthew On 28 May 2009, at 22:25, Timothy Redmond wrote: > > On Thu, 2009-05-28 at 16:34 -0400, Safran, Tracy (NIH/NCI) [C] wrote: >> Thanks. Is there a way to pull the Concept_In_Subset in OWL 1.1? >> It is >> not appearing under ontology.getAnnotationURIs(). > > I couldn't replicate this problem. I downloaded a copy of the > BiomedGT > from the following location: > > cbapp-q1001:/app/protege/data/Protege_1.4/BiomedGT/BiomedGT-090423- > File.owl > > and ran the attached program. It generated the output shown below. > > This output raised a question for me. I am not sure but I think > that perhaps in the owl api you cannot annotate annotation > properties. In OWL 2.0 this is ok but I am not sure if the OWL api > has this already. > > -Timothy > > > Loading biomedgt > Took 54670ms > annotation http://ncicb.nci.nih.gov/xml/owl/EVS/BiomedGT.owl#Concept_In_Subset > Found as object property reference = true > Found as data property reference = false > object property found in EntityAnnotationAxiom(Concept_In_Subset > Annotation(code "A8"^^string)) > object property found in EntityAnnotationAxiom(Concept_In_Subset > Annotation(Semantic_Type "Conceptual Entity"^^string)) > object property found in EntityAnnotationAxiom(Concept_In_Subset > Annotation(Preferred_Name "Concept_In_Subset"^^string)) > object property found in EntityAnnotationAxiom(Concept_In_Subset > Annotation(FULL_SYN "<term-name>Concept_In_Subset</term-name><term- > group>PT</term-group><term-source>NCI</term-source>"^^string)) > object property found in EntityAnnotationAxiom(Concept_In_Subset > Annotation(DEFINITION "<def-source>NCI</def-source><def- > definition>Used to associate the concept defining a particular > terminology subset with concepts that belong to this subset.</def- > definition><Definition_Review_Date>060327</ > Definition_Review_Date><Definition_Reviewer_Name>Nicole Thomas</ > Definition_Reviewer_Name>"^^string)) > object property found in EntityAnnotationAxiom(Concept_In_Subset > Label( "Concept_In_Subset"^^string)) > > > > > On Thu, 2009-05-28 at 16:34 -0400, Safran, Tracy (NIH/NCI) [C] wrote: >> Thanks. Is there a way to pull the Concept_In_Subset in OWL 1.1? >> It is >> not appearing under ontology.getAnnotationURIs(). >> >> Tracy M. Safran >> Contractor - SAIC Frederick >> EVS support >> 301-402-1537 >> >> >> -----Original Message----- >> From: Timothy Redmond [mailto:tre...@st...] >> Sent: Thursday, May 28, 2009 2:45 PM >> To: owl...@li... >> Subject: Re: [OWLAPI-developer] Retrieving rdf:Type from >> ObjectProperty >> >> >> Hi Tracy Safran, >> >> I am replying before the usual suspects because it is a Protege 3 >> design flaw that is creating some problems with this ontology. >> >> On May 28, 2009, at 7:46 AM, Safran, Tracy (NIH/NCI) [C] wrote: >> >>> I have an ObjectProperty defined as below. How do I retrieve the >>> rdf:Type? I have tried cls.getAnnotations(ontology, >>> OWLRDFVocabulary.RDF_TYPE.getURI()) but get no return. The rdf:type >>> does not show up under cls.getAnnotations(ontology) either. Thanks, >> >> rdf:type is not an owl annotation, object or data property. It is >> part of the rdf internal syntax that can be used to represent owl >> declarations. The ontology fragment that you sent has two statements >> about the rdf:type of the resource >> >> >> http://ncicb.nci.nih.gov/xml/owl/EVS/BiomedGT.owl#Concept_In_Subset >> , >> >> One states that this resources is an annotation property and the >> other >> (implicit statement) states that this resource is an ObjectProperty. >> In the OWL 2.0 Functional Syntax this appears as two owl entities >> with the same uri: >> >> Declaration(AnnotationProperty(Concept_In_Subset)) >> >> Declaration(ObjectProperty(Concept_In_Subset)) >> >> In the owl api the first of these can be found via >> >> ontology.getAnnotationURIs() >> >> and the second declaration can be found as >> >> URI u = >> URI.create("http://ncicb.nci.nih.gov/xml/owl/EVS/BiomedGT.owl#Concept_In >> _Subset >> "); >> ontology.getReferencingAxioms(factory.getOWLObjectProperty(u)) >> >> Conceivably if you were using the owl api to clean up the ontology, >> you could loop through all the annotation uris and delete all the >> object or data property declarations for those uris. In your case I >> think that none of these data and object property declarations are >> desired. >> >> -Timothy >> >> >>> <owl:ObjectProperty >>> >> rdf:about="http://ncicb.nci.nih.gov/xml/owl/EVS/BiomedGT.owl#Concept_In_ >>> Subset"> >>> <rdf:type >>> rdf:resource="http://www.w3.org/2002/07/owl#AnnotationProperty"/> >>> <code >>> rdf:datatype="http://www.w3.org/2001/XMLSchema#string">A8</code> >>> <Preferred_Name >>> rdf:datatype="http://www.w3.org/2001/XMLSchema#string" >>>> Concept_In_Subset</Preferred_Name> >>> <Semantic_Type >>> rdf:datatype="http://www.w3.org/2001/XMLSchema#string" >>>> Conceptual Entity</Semantic_Type> >>> <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string" >>>> Concept_In_Subset</rdfs:label> >>> <DEFINITION rdf:datatype="http://www.w3.org/2001/XMLSchema#string" >>>> <def-source>NCI</def-source><def-definition>Used >>> to associate the concept defining a particular terminology subset >>> with >>> concepts that belong to this >>> subset.</def-definition><Definition_Review_Date> >>> 060327</D >>> efinition_Review_Date><Definition_Reviewer_Name>NT</ >>> Definiti >>> on_Reviewer_Name></DEFINITION> >>> </owl:ObjectProperty> >>> >>> Tracy M. Safran >>> Contractor - SAIC Frederick >>> EVS support >>> 301-402-1537 >>> >>> >>> >> ------------------------------------------------------------------------ >> ------ >>> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT >>> is a gathering of tech-side developers & brand creativity >>> professionals. Meet >>> the minds behind Google Creative Lab, Visual Complexity, >>> Processing, & >>> iPhoneDevCamp as they present alongside digital heavyweights like >>> Barbarian >>> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com >>> _______________________________________________ >>> Owlapi-developer mailing list >>> Owl...@li... >>> https://lists.sourceforge.net/lists/listinfo/owlapi-developer >> >> >> >> ------------------------------------------------------------------------ >> ------ >> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT >> is a gathering of tech-side developers & brand creativity >> professionals. >> Meet >> the minds behind Google Creative Lab, Visual Complexity, >> Processing, & >> iPhoneDevCamp as they present alongside digital heavyweights like >> Barbarian >> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com >> _______________________________________________ >> Owlapi-developer mailing list >> Owl...@li... >> https://lists.sourceforge.net/lists/listinfo/owlapi-developer >> >> ------------------------------------------------------------------------------ >> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT >> is a gathering of tech-side developers & brand creativity >> professionals. Meet >> the minds behind Google Creative Lab, Visual Complexity, >> Processing, & >> iPhoneDevCamp as they present alongside digital heavyweights like >> Barbarian >> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com >> _______________________________________________ >> Owlapi-developer mailing list >> Owl...@li... >> https://lists.sourceforge.net/lists/listinfo/owlapi-developer > < > ObjectAnnnotation > .java > > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity > professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp as they present alongside digital heavyweights like > Barbarian > Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com > _______________________________________________ > Owlapi-developer mailing list > Owl...@li... > https://lists.sourceforge.net/lists/listinfo/owlapi-developer |