public class SPINLabels extends Object
| Constructor and Description |
|---|
SPINLabels() |
| Modifier and Type | Method and Description |
|---|---|
static void |
appendTemplateCallLabel(StringBuffer buffer,
String labelTemplate,
Map<String,org.apache.jena.rdf.model.RDFNode> args)
Renders a template call's label template into a label by inserting the
evaluated SPARQL expressions into appropriate spaces marked with {expression}.
|
static SPINLabels |
get()
Gets the singleton instance of this class.
|
String |
getCustomizedLabel(org.apache.jena.rdf.model.Resource resource)
Gets a "human-readable" label for a given Resource.
|
String |
getLabel(org.apache.jena.rdf.model.Resource resource)
Gets the label for a given Resource.
|
String |
getNodeLabel(org.apache.jena.rdf.model.RDFNode node) |
static void |
set(SPINLabels value)
Replaces the singleton to a subclass with different behavior.
|
public static SPINLabels get()
public static void set(SPINLabels value)
value - the new enginepublic String getCustomizedLabel(org.apache.jena.rdf.model.Resource resource)
getLabel().resource - public String getLabel(org.apache.jena.rdf.model.Resource resource)
resource - the Resource to get the label ofpublic String getNodeLabel(org.apache.jena.rdf.model.RDFNode node)
public static void appendTemplateCallLabel(StringBuffer buffer, String labelTemplate, Map<String,org.apache.jena.rdf.model.RDFNode> args)
buffer - the StringBuffer to write tolabelTemplate - the labelTemplateargs - the arguments a Map of pre-bound variables (supplied arguments)Copyright © 2017 TopQuadrant, Inc.. All rights reserved.