public class DisplayRdfNode extends CommonNodeWrapper
DisplayHierarchy
to unfold the results graph into a tree
that can be displayed to the user.Constructor and Description |
---|
DisplayRdfNode(Page page,
com.hp.hpl.jena.rdf.model.RDFNode root)
Construct a displayable node attached to the given page.
|
DisplayRdfNode(Page page,
com.epimorphics.rdfutil.RDFNodeWrapper root) |
Modifier and Type | Method and Description |
---|---|
List<com.epimorphics.rdfutil.PropertyValue> |
getDisplayProperties()
Return a list of the triples for this resource which should be displayed,
in the order in which they should be displayed.
|
boolean |
hasAllProperties(List<Object> properties) |
boolean |
hasAllProperties(Object... properties) |
protected boolean |
isNonDisplay(com.epimorphics.rdfutil.PropertyValue s)
Return true if the given triple should not appear in the list of display
triples for a resource.
|
List<com.epimorphics.rdfutil.RDFNodeWrapper> |
labels()
Return a list of all of the labels for this resource.
|
static PropertyOrderingStrategy |
propertyOrdering() |
static void |
setPropertyOrdering(PropertyOrderingStrategy ordering)
Set the new common strategy for ordering the triples attached to a property.
|
String |
shortUniqueID() |
List<com.epimorphics.rdfutil.RDFNodeWrapper> |
types()
Return the list of types - i.e.
|
String |
uniqueID() |
protected List<com.epimorphics.rdfutil.PropertyValue> |
withoutNonDisplayTriples(List<com.epimorphics.rdfutil.PropertyValue> triples)
Side-effect the given list of triples to remove those that are not to
be displayed.
|
getInt, getResource, isXmlLiteral, page
asList, asLiteral, asRDFNode, asResource, asTurtle, asTurtle, closure, closure, connectedNodes, equals, firstValueOf, get, getDatatype, getLanguage, getLexicalForm, getLocalizedValue, getModelW, getName, getPropertyValue, getShortURI, getURI, getValue, hashCode, hasResourceValue, isAnon, isList, isLiteral, isResource, listInLinks, listInLinks, listProperties, listPropertyValues, tokeniseWords, toProperty, toString
public DisplayRdfNode(Page page, com.hp.hpl.jena.rdf.model.RDFNode root)
page
- The page objectroot
- The RDF nodepublic DisplayRdfNode(Page page, com.epimorphics.rdfutil.RDFNodeWrapper root)
public static void setPropertyOrdering(PropertyOrderingStrategy ordering)
ordering
- The new PropertyOrderingStrategy
public static PropertyOrderingStrategy propertyOrdering()
public List<com.epimorphics.rdfutil.PropertyValue> getDisplayProperties()
public List<com.epimorphics.rdfutil.RDFNodeWrapper> types()
rdf:type
of this
resource, sorted into label order.public List<com.epimorphics.rdfutil.RDFNodeWrapper> labels()
RDFUtil.labelProps
public String uniqueID()
public String shortUniqueID()
public boolean hasAllProperties(Object... properties)
protected List<com.epimorphics.rdfutil.PropertyValue> withoutNonDisplayTriples(List<com.epimorphics.rdfutil.PropertyValue> triples)
triples
- A list of RDF triples from which the non-display triples
will be removed.protected boolean isNonDisplay(com.epimorphics.rdfutil.PropertyValue s)
s
- A tripleCopyright © 2014. All Rights Reserved.