From d2c8b16a13a1ab05f5dcbf882952e788db33f184 Mon Sep 17 00:00:00 2001 From: brianjlowe Date: Thu, 5 May 2011 15:05:00 +0000 Subject: [PATCH] NIHVIVO-2613 added owl:AnnotationProperty to TBox extract --- .../cornell/mannlib/vitro/webapp/dao/jena/JenaModelUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/JenaModelUtils.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/JenaModelUtils.java index b6c3fb247..8c1a25df3 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/JenaModelUtils.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/JenaModelUtils.java @@ -51,6 +51,7 @@ public class JenaModelUtils { nonIndividualTypeURIs.add(OWL.Restriction.getURI()); nonIndividualTypeURIs.add(OWL.ObjectProperty.getURI()); nonIndividualTypeURIs.add(OWL.DatatypeProperty.getURI()); + nonIndividualTypeURIs.add(OWL.AnnotationProperty.getURI()); nonIndividualTypeURIs.add(OWL.Ontology.getURI()); nonIndividualTypeURIs.add(RDFS.Class.getURI()); nonIndividualTypeURIs.add(RDF.Property.getURI()); @@ -122,6 +123,7 @@ private final OntModelSpec DEFAULT_ONT_MODEL_SPEC = OntModelSpec.OWL_MEM; queryStrList.add( makeDescribeQueryStr( OWL.Class.getURI(), namespace, graphURI ) ); queryStrList.add( makeDescribeQueryStr( OWL.ObjectProperty.getURI(), namespace, graphURI ) ); queryStrList.add( makeDescribeQueryStr( OWL.DatatypeProperty.getURI(), namespace, graphURI ) ); + queryStrList.add( makeDescribeQueryStr( OWL.AnnotationProperty.getURI(), namespace, graphURI ) ); // if we're using to a hash namespace, the URI of the Ontology resource will be // that namespace minus the final hash mark. if ( namespace != null && namespace.endsWith("#") ) {