public class RDFLabels extends Object
| Constructor and Description |
|---|
RDFLabels() |
| 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 RDFLabels |
get()
Gets the singleton instance of this class.
|
String |
getBlankNodeLabel(org.apache.jena.rdf.model.Resource resource)
Gets a "human-readable" label for a blank node,
e.g.
|
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(RDFLabels value)
Replaces the singleton to a subclass with different behavior.
|
public static RDFLabels get()
public static void set(RDFLabels value)
value - the new enginepublic String getBlankNodeLabel(org.apache.jena.rdf.model.Resource resource)
resource - the blank node resource to get the label forpublic String getCustomizedLabel(org.apache.jena.rdf.model.Resource resource)
getLabel().resource - the resource to get the label forpublic 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 © 2019 TopQuadrant, Inc.. All rights reserved.