org.topbraid.core.model
Class Properties
java.lang.Object
org.topbraid.core.model.Properties
public class Properties
- extends java.lang.Object
Static utility methods for (Jena) properties.
- Author:
- Holger Knublauch
|
Method Summary |
static com.hp.hpl.jena.ontology.OntProperty |
asOntProperty(com.hp.hpl.jena.rdf.model.RDFNode node)
|
static java.util.Set<com.hp.hpl.jena.ontology.OntProperty> |
asOntProperty(java.util.Set nodes)
Converts the type of a set of nodes to OntProperty. |
static java.util.Set<com.hp.hpl.jena.rdf.model.Resource> |
getAllSubProperties(com.hp.hpl.jena.rdf.model.Resource prop)
|
static java.util.Set<com.hp.hpl.jena.rdf.model.Resource> |
getAllSubProperties(com.hp.hpl.jena.rdf.model.Resource prop,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
static java.util.Set<com.hp.hpl.jena.ontology.OntProperty> |
getAllSubPropertiesAsProperty(com.hp.hpl.jena.rdf.model.Resource prop)
|
static java.util.Set<com.hp.hpl.jena.ontology.OntProperty> |
getAllSubPropertiesAsProperty(com.hp.hpl.jena.rdf.model.Resource prop,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
static java.util.List |
getDeFactoAnnotationProperties(com.hp.hpl.jena.ontology.OntModel ontModel)
|
static com.hp.hpl.jena.rdf.model.Resource |
getInverse(com.hp.hpl.jena.rdf.model.Resource property)
|
static java.util.Collection |
getSystemProperties()
|
static java.util.Collection |
getSystemProperties(com.hp.hpl.jena.ontology.OntModel ontModel)
|
static boolean |
hasSuperProperty(com.hp.hpl.jena.rdf.model.Resource subProperty,
com.hp.hpl.jena.rdf.model.Resource superProperty)
|
static boolean |
isAnnotationProperty(com.hp.hpl.jena.rdf.model.RDFNode node)
|
static boolean |
isDatatypeProperty(com.hp.hpl.jena.rdf.model.RDFNode node)
|
static boolean |
isDeFactoAnnotationProperty(com.hp.hpl.jena.rdf.model.Resource resource)
|
static boolean |
isFunctionalProperty(com.hp.hpl.jena.rdf.model.RDFNode node)
|
static boolean |
isObjectProperty(com.hp.hpl.jena.rdf.model.RDFNode node)
|
static boolean |
isProperty(com.hp.hpl.jena.rdf.model.RDFNode node)
|
static java.util.Iterator<com.hp.hpl.jena.rdf.model.Property> |
listOntProperties(com.hp.hpl.jena.ontology.OntModel ontModel)
|
static java.util.Iterator |
listSuperProperties(com.hp.hpl.jena.rdf.model.Resource rootProperty)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Properties
public Properties()
asOntProperty
public static com.hp.hpl.jena.ontology.OntProperty asOntProperty(com.hp.hpl.jena.rdf.model.RDFNode node)
asOntProperty
public static java.util.Set<com.hp.hpl.jena.ontology.OntProperty> asOntProperty(java.util.Set nodes)
- Converts the type of a set of nodes to OntProperty.
- Parameters:
nodes - - A set of unspecified type of nodes
- Returns:
- A set of OntProperty nodes
getDeFactoAnnotationProperties
public static java.util.List getDeFactoAnnotationProperties(com.hp.hpl.jena.ontology.OntModel ontModel)
getInverse
public static com.hp.hpl.jena.rdf.model.Resource getInverse(com.hp.hpl.jena.rdf.model.Resource property)
getAllSubProperties
public static java.util.Set<com.hp.hpl.jena.rdf.model.Resource> getAllSubProperties(com.hp.hpl.jena.rdf.model.Resource prop)
getAllSubProperties
public static java.util.Set<com.hp.hpl.jena.rdf.model.Resource> getAllSubProperties(com.hp.hpl.jena.rdf.model.Resource prop,
org.eclipse.core.runtime.IProgressMonitor monitor)
getAllSubPropertiesAsProperty
public static java.util.Set<com.hp.hpl.jena.ontology.OntProperty> getAllSubPropertiesAsProperty(com.hp.hpl.jena.rdf.model.Resource prop)
getAllSubPropertiesAsProperty
public static java.util.Set<com.hp.hpl.jena.ontology.OntProperty> getAllSubPropertiesAsProperty(com.hp.hpl.jena.rdf.model.Resource prop,
org.eclipse.core.runtime.IProgressMonitor monitor)
getSystemProperties
public static java.util.Collection getSystemProperties()
getSystemProperties
public static java.util.Collection getSystemProperties(com.hp.hpl.jena.ontology.OntModel ontModel)
hasSuperProperty
public static boolean hasSuperProperty(com.hp.hpl.jena.rdf.model.Resource subProperty,
com.hp.hpl.jena.rdf.model.Resource superProperty)
isAnnotationProperty
public static boolean isAnnotationProperty(com.hp.hpl.jena.rdf.model.RDFNode node)
isDeFactoAnnotationProperty
public static boolean isDeFactoAnnotationProperty(com.hp.hpl.jena.rdf.model.Resource resource)
isDatatypeProperty
public static boolean isDatatypeProperty(com.hp.hpl.jena.rdf.model.RDFNode node)
isFunctionalProperty
public static boolean isFunctionalProperty(com.hp.hpl.jena.rdf.model.RDFNode node)
isObjectProperty
public static boolean isObjectProperty(com.hp.hpl.jena.rdf.model.RDFNode node)
isProperty
public static boolean isProperty(com.hp.hpl.jena.rdf.model.RDFNode node)
listOntProperties
public static java.util.Iterator<com.hp.hpl.jena.rdf.model.Property> listOntProperties(com.hp.hpl.jena.ontology.OntModel ontModel)
listSuperProperties
public static java.util.Iterator listSuperProperties(com.hp.hpl.jena.rdf.model.Resource rootProperty)