org.eaglei.model.jena
Class EagleIOntUtils
java.lang.Object
org.eaglei.model.jena.EagleIOntUtils
public final class EagleIOntUtils
- extends java.lang.Object
Utility methods for accessing common elements of the eagle-i ontology.
|
Method Summary |
static java.util.List<java.util.List<com.hp.hpl.jena.ontology.OntClass>> |
getClassesInGroup(com.hp.hpl.jena.ontology.OntModel jenaOntModel,
java.util.List<java.lang.String> listClassGroupURI)
|
static java.util.List<com.hp.hpl.jena.ontology.OntClass> |
getClassesInGroup(com.hp.hpl.jena.ontology.OntModel jenaOntModel,
java.lang.String classGroupURI)
Retrieves the classes in the eagle-i ontology that have been designated (via an special annotation
property) as belonging to the specified group. |
static boolean |
isPropertyInGroup(com.hp.hpl.jena.ontology.OntModel jenaOntModel,
java.lang.String propertyGroupURI,
java.lang.String propertyURI)
Determines if the specified property in the eagle-i ontology has been designated (via an special annotation
property) as belonging to the specified group. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EagleIOntUtils
public EagleIOntUtils()
getClassesInGroup
public static java.util.List<com.hp.hpl.jena.ontology.OntClass> getClassesInGroup(com.hp.hpl.jena.ontology.OntModel jenaOntModel,
java.lang.String classGroupURI)
- Retrieves the classes in the eagle-i ontology that have been designated (via an special annotation
property) as belonging to the specified group. Group membership is determined by the URI of the
resource instance that is bound to the annotation property http://purl.org/eagle-i/app/inClassGroup.
- Parameters:
classGroupURI - URI of an instance of http://purl.org/eagle-i/app/ClassGroup that determines the
class group.
- Returns:
- List of Jena OntClasses that belong to the specified group.
getClassesInGroup
public static java.util.List<java.util.List<com.hp.hpl.jena.ontology.OntClass>> getClassesInGroup(com.hp.hpl.jena.ontology.OntModel jenaOntModel,
java.util.List<java.lang.String> listClassGroupURI)
isPropertyInGroup
public static boolean isPropertyInGroup(com.hp.hpl.jena.ontology.OntModel jenaOntModel,
java.lang.String propertyGroupURI,
java.lang.String propertyURI)
- Determines if the specified property in the eagle-i ontology has been designated (via an special annotation
property) as belonging to the specified group. Group membership is determined by the URI of the
resource instance that is bound to the annotation property http://purl.org/eagle-i/app/inPropertyGroup.
- Parameters:
propertyGroupURI - URI of an instance of http://purl.org/eagle-i/app/PropertyGroup that determines the
property group.propertyURI - URI of the property whose membership in the group is being checked.
- Returns:
- True if the specified property is in the specified property group, false otherwise.
Copyright © 2009-2010 Eagle-I. All Rights Reserved.