org.topbraid.rules.swrl
Class SWRLLabelsPlugin
java.lang.Object
org.topbraid.rules.swrl.SWRLLabelsPlugin
- All Implemented Interfaces:
- ILabelsPlugin
public class SWRLLabelsPlugin
- extends java.lang.Object
- implements ILabelsPlugin
|
Method Summary |
void |
appendLabel(java.lang.StringBuffer buffer,
com.hp.hpl.jena.rdf.model.RDFNode node,
boolean multiLine)
|
void |
appendNestedLabel(java.lang.StringBuffer buffer,
com.hp.hpl.jena.rdf.model.RDFNode node,
boolean multiLine)
|
boolean |
isKeyword(java.lang.String word)
Checks if a given string is a keyword (such as 'max') in this plugin. |
boolean |
isSuitable(com.hp.hpl.jena.rdf.model.RDFNode node)
Checks if this plugin is suitable to render a given node into text. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DIFFERENT_FROM
public static final java.lang.String DIFFERENT_FROM
isSuitableCache
public static java.lang.Boolean isSuitableCache
SAME_AS
public static final java.lang.String SAME_AS
SWRLLabelsPlugin
public SWRLLabelsPlugin()
appendLabel
public void appendLabel(java.lang.StringBuffer buffer,
com.hp.hpl.jena.rdf.model.RDFNode node,
boolean multiLine)
- Specified by:
appendLabel in interface ILabelsPlugin
appendNestedLabel
public void appendNestedLabel(java.lang.StringBuffer buffer,
com.hp.hpl.jena.rdf.model.RDFNode node,
boolean multiLine)
- Specified by:
appendNestedLabel in interface ILabelsPlugin
isKeyword
public boolean isKeyword(java.lang.String word)
- Description copied from interface:
ILabelsPlugin
- Checks if a given string is a keyword (such as 'max') in this plugin.
- Specified by:
isKeyword in interface ILabelsPlugin
- Parameters:
word - the word to check
- Returns:
- true if word is a keyword
isSuitable
public boolean isSuitable(com.hp.hpl.jena.rdf.model.RDFNode node)
- Description copied from interface:
ILabelsPlugin
- Checks if this plugin is suitable to render a given node into text.
- Specified by:
isSuitable in interface ILabelsPlugin
- Parameters:
node - the node to check
- Returns:
- true if this can create a string representation of the node