public class PropertyDaoJena extends JenaBaseDao implements PropertyDao
PropertyDao.FullPropertyKey| Modifier and Type | Field and Description |
|---|---|
protected DatasetWrapperFactory |
dwf |
protected static String |
FAUX_PROPERTY_FLAG |
protected static org.apache.commons.logging.Log |
log |
protected static String |
PREFIXES |
protected RDFService |
rdfService |
DEFAULT_NAMESPACE, KEEP_ONLY_IF_FALSE, KEEP_ONLY_IF_TRUE, NONUSER_NAMESPACES, PREFERRED_LANGUAGES, PSEUDO_BNODE_NS, XSD, xsdDateFormat, xsdDateTimeFormatADDITIONAL_LINK, APPLICATION_ABOUTTEXT, APPLICATION_ACKNOWLEGETEXT, APPLICATION_CONTACTMAIL, APPLICATION_COPYRIGHTANCHOR, APPLICATION_COPYRIGHTURL, APPLICATION_CORRECTIONMAIL, APPLICATION_THEMEDIR, CLASSGROUP, DATAPROPERTY_ISEXTERNALID, DESCRIPTION_ANNOT, DISPLAY_LIMIT, DISPLAY_RANK, DISPLAY_RANK_ANNOT, EXAMPLE, EXAMPLE_ANNOT, HIDDEN_FROM_DISPLAY_BELOW_ROLE_LEVEL_ANNOT, HIDDEN_FROM_PUBLISH_BELOW_ROLE_LEVEL_ANNOT, IN_CLASSGROUP, IND_MAIN_IMAGE, LINK, LINK_ANCHOR, LINK_DISPLAYRANK, LINK_TYPE, LINK_URL, MODTIME, MONIKER, ONTOLOGY_PREFIX_ANNOT, PERMISSION, PERMISSION_SET_FOR_NEW_USERS, PERMISSION_SET_FOR_PUBLIC, PERMISSIONSET, PERMISSIONSET_HAS_PERMISSION, PORTAL, PRIMARY_LINK, PROHIBITED_FROM_UPDATE_BELOW_ROLE_LEVEL_ANNOT, PROPERTY_ADDLINKSUPPRESSED, PROPERTY_COLLATEBYSUBCLASSANNOT, PROPERTY_CUSTOM_LIST_VIEW_ANNOT, PROPERTY_CUSTOMDISPLAYVIEWANNOT, PROPERTY_CUSTOMENTRYFORMANNOT, PROPERTY_CUSTOMSEARCHVIEWANNOT, PROPERTY_CUSTOMSHORTVIEWANNOT, PROPERTY_DELETELINKSUPPRESSED, PROPERTY_EDITLINKSUPPRESSED, PROPERTY_ENTITYSORTDIRECTION, PROPERTY_ENTITYSORTFIELD, PROPERTY_FULLPROPERTYNAMEANNOT, PROPERTY_INPROPERTYGROUPANNOT, PROPERTY_OBJECTINDIVIDUALSORTPROPERTY, PROPERTY_OFFERCREATENEWOPTIONANNOT, PROPERTY_SELECTFROMEXISTINGANNOT, PROPERTY_STUBOBJECTPROPERTYANNOT, PROPERTYGROUP, PUBLIC_DESCRIPTION_ANNOT, SEARCH_BOOST_ANNOT, SHORTDEF, USERACCOUNT, USERACCOUNT_EMAIL_ADDRESS, USERACCOUNT_EXTERNAL_AUTH_ID, USERACCOUNT_EXTERNAL_AUTH_ONLY, USERACCOUNT_FIRST_NAME, USERACCOUNT_HAS_PERMISSION_SET, USERACCOUNT_LAST_LOGIN_TIME, USERACCOUNT_LAST_NAME, USERACCOUNT_LOGIN_COUNT, USERACCOUNT_MD5_PASSWORD, USERACCOUNT_OLD_PASSWORD, USERACCOUNT_PASSWORD_CHANGE_REQUIRED, USERACCOUNT_PASSWORD_LINK_EXPIRES, USERACCOUNT_PROXY_EDITOR_FOR, USERACCOUNT_ROOT_USER, USERACCOUNT_STATUS, VITRO_PUBLIC_ONTOLOGY| Constructor and Description |
|---|
PropertyDaoJena(RDFService rdfService,
DatasetWrapperFactory dwf,
WebappDaoFactoryJena wadf) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEquivalentProperty(Property property,
Property equivalentProperty) |
void |
addEquivalentProperty(String propertyURI,
String equivalentPropertyURI) |
void |
addSubproperty(ObjectProperty property,
ObjectProperty subproperty) |
void |
addSubproperty(Property property,
Property subproperty) |
void |
addSubproperty(String propertyURI,
String subpropertyURI) |
void |
addSuperproperty(ObjectProperty property,
ObjectProperty superproperty) |
void |
addSuperproperty(Property property,
Property superproperty) |
void |
addSuperproperty(String propertyURI,
String superpropertyURI) |
List<PropertyInstance> |
getAllPossiblePropInstForIndividual(String individualURI) |
List<PropertyInstance> |
getAllPropInstByVClass(String classURI) |
List<PropertyInstance> |
getAllPropInstByVClasses(List<VClass> vclasses) |
List<String> |
getAllSubPropertyURIs(String propertyURI) |
List<String> |
getAllSuperPropertyURIs(String propertyURI) |
List<VClass> |
getClassesWithRestrictionOnProperty(String propertyURI)
Finds the classes that have a definition involving a restriction
on the given property.
|
List<String> |
getEquivalentPropertyURIs(String propertyURI) |
protected com.hp.hpl.jena.ontology.OntModel |
getOntModel() |
protected List<com.hp.hpl.jena.rdf.model.Resource> |
getPropertiesWithAppropriateDomainFor(String vclassURI)
requires SPARQL 1.1 (or ARQ) property path support
|
protected void |
getPropertyQueryResults(String queryString,
ResultSetConsumer consumer) |
protected RDFService |
getRDFService() |
HashSet<String> |
getRestrictedClasses(com.hp.hpl.jena.ontology.OntClass ontClass)
Find named classes to which a restriction "applies"
|
List<String> |
getSubPropertyURIs(String propertyURI) |
List<String> |
getSuperPropertyURIs(String propertyURI,
boolean direct) |
protected void |
removeABoxStatementsWithPredicate(Property predicate) |
protected void |
removeABoxStatementsWithPredicate(String predicateURI) |
void |
removeEquivalentProperty(Property property,
Property equivalentProperty) |
void |
removeEquivalentProperty(String propertyURI,
String equivalentPropertyURI) |
void |
removeSubproperty(ObjectProperty property,
ObjectProperty subproperty) |
void |
removeSubproperty(Property property,
Property subproperty) |
void |
removeSubproperty(String propertyURI,
String subpropertyURI) |
void |
removeSuperproperty(ObjectProperty property,
ObjectProperty superproperty) |
void |
removeSuperproperty(Property property,
Property superproperty) |
void |
removeSuperproperty(String propertyURI,
String superpropertyURI) |
addPropertyBooleanValue, addPropertyDateTimeValue, addPropertyDateValue, addPropertyFloatValue, addPropertyIntValue, addPropertyLongValue, addPropertyNonNegativeIntValue, addPropertyResourceURIValue, addPropertyResourceValue, addPropertyStringValue, checkURI, getClassURIStr, getDefaultLanguage, getLabel, getLabelLiteral, getLabelLiteral, getLabelOrId, getLocalNameOrId, getMostRestrictiveRoleLevel, getOntClass, getOntModelSelector, getPropertyBooleanValue, getPropertyDateTimeValue, getPropertyDateValue, getPropertyFloatValue, getPropertyIntValue, getPropertyLongValue, getPropertyNonNegativeIntegerValue, getPropertyNonNegativeIntValue, getPropertyResourceURIValues, getPropertyStringValue, getSmartRemoval, getWebappDaoFactory, getWritableOntModelList, isBooleanClassExpression, listDirectObjectPropertySubjects, listDirectObjectPropertyValues, makeNodeForURI, removeRulesMentioningResource, smartRemove, updatePropertyBooleanValue, updatePropertyDateTimeValue, updatePropertyDateValue, updatePropertyFloatValue, updatePropertyIntValue, updatePropertyLongValue, updatePropertyNonNegativeIntegerValue, updatePropertyNonNegativeIntValue, updatePropertyResourceURIValue, updatePropertyResourceURIValue, updatePropertyResourceURIValues, updatePropertyResourceValue, updatePropertyResourceValue, updatePropertyStringValue, updateRDFSLabelgetConstModelprotected static final org.apache.commons.logging.Log log
protected static final String FAUX_PROPERTY_FLAG
protected static final String PREFIXES
protected RDFService rdfService
protected DatasetWrapperFactory dwf
public PropertyDaoJena(RDFService rdfService, DatasetWrapperFactory dwf, WebappDaoFactoryJena wadf)
protected com.hp.hpl.jena.ontology.OntModel getOntModel()
getOntModel in class JenaBaseDaoprotected RDFService getRDFService()
public void addSuperproperty(ObjectProperty property, ObjectProperty superproperty)
public void addSuperproperty(String propertyURI, String superpropertyURI)
addSuperproperty in interface PropertyDaopublic void removeSuperproperty(ObjectProperty property, ObjectProperty superproperty)
public void removeSuperproperty(String propertyURI, String superpropertyURI)
removeSuperproperty in interface PropertyDaopublic void addSubproperty(ObjectProperty property, ObjectProperty subproperty)
public void addSubproperty(String propertyURI, String subpropertyURI)
addSubproperty in interface PropertyDaopublic void removeSubproperty(ObjectProperty property, ObjectProperty subproperty)
public void removeSubproperty(String propertyURI, String subpropertyURI)
removeSubproperty in interface PropertyDaopublic List<String> getSubPropertyURIs(String propertyURI)
getSubPropertyURIs in interface PropertyDaopublic List<String> getAllSubPropertyURIs(String propertyURI)
getAllSubPropertyURIs in interface PropertyDaopublic List<String> getSuperPropertyURIs(String propertyURI, boolean direct)
getSuperPropertyURIs in interface PropertyDaopublic List<String> getAllSuperPropertyURIs(String propertyURI)
getAllSuperPropertyURIs in interface PropertyDaopublic void addSubproperty(Property property, Property subproperty)
addSubproperty in interface PropertyDaopublic void addSuperproperty(Property property, Property superproperty)
addSuperproperty in interface PropertyDaopublic void removeSubproperty(Property property, Property subproperty)
removeSubproperty in interface PropertyDaopublic void removeSuperproperty(Property property, Property superproperty)
removeSuperproperty in interface PropertyDaopublic void addEquivalentProperty(String propertyURI, String equivalentPropertyURI)
addEquivalentProperty in interface PropertyDaopublic void addEquivalentProperty(Property property, Property equivalentProperty)
addEquivalentProperty in interface PropertyDaopublic List<String> getEquivalentPropertyURIs(String propertyURI)
getEquivalentPropertyURIs in interface PropertyDaopublic void removeEquivalentProperty(String propertyURI, String equivalentPropertyURI)
removeEquivalentProperty in interface PropertyDaopublic void removeEquivalentProperty(Property property, Property equivalentProperty)
removeEquivalentProperty in interface PropertyDaoprotected void removeABoxStatementsWithPredicate(Property predicate)
protected void removeABoxStatementsWithPredicate(String predicateURI)
public List<VClass> getClassesWithRestrictionOnProperty(String propertyURI)
getClassesWithRestrictionOnProperty in interface PropertyDaopropertyURI - identifier of a propertypublic HashSet<String> getRestrictedClasses(com.hp.hpl.jena.ontology.OntClass ontClass)
ontClass - Ontology classprotected void getPropertyQueryResults(String queryString, ResultSetConsumer consumer)
protected List<com.hp.hpl.jena.rdf.model.Resource> getPropertiesWithAppropriateDomainFor(String vclassURI)
vclassURI - VClass URIpublic List<PropertyInstance> getAllPossiblePropInstForIndividual(String individualURI)
public List<PropertyInstance> getAllPropInstByVClass(String classURI)
public List<PropertyInstance> getAllPropInstByVClasses(List<VClass> vclasses)
Copyright © 2016. All rights reserved.