public class RdfSerializationUtils extends Object
Modifier and Type | Field and Description |
---|---|
static com.hp.hpl.jena.graph.Node |
mixinTypesPredicate
The RDF predicate that will indicate the mixin types.
|
static com.hp.hpl.jena.graph.Node |
primaryTypePredicate
The RDF predicate that will indicate the primary node type.
|
Modifier and Type | Method and Description |
---|---|
static Iterator<String> |
getAllValuesForPredicate(com.hp.hpl.jena.rdf.model.Model rdf,
com.hp.hpl.jena.graph.Node subject,
com.hp.hpl.jena.graph.Node predicate)
Get all the values for a predicate as a string array, or null if the
predicate is not used
|
static String |
getFirstValueForPredicate(com.hp.hpl.jena.rdf.model.Model rdf,
com.hp.hpl.jena.graph.Node subject,
com.hp.hpl.jena.graph.Node predicate)
Get the very first value for a predicate as a string, or null if the
predicate is not used
|
public static com.hp.hpl.jena.graph.Node primaryTypePredicate
public static com.hp.hpl.jena.graph.Node mixinTypesPredicate
public static String getFirstValueForPredicate(com.hp.hpl.jena.rdf.model.Model rdf, com.hp.hpl.jena.graph.Node subject, com.hp.hpl.jena.graph.Node predicate)
rdf
- subject
- predicate
- public static Iterator<String> getAllValuesForPredicate(com.hp.hpl.jena.rdf.model.Model rdf, com.hp.hpl.jena.graph.Node subject, com.hp.hpl.jena.graph.Node predicate)
rdf
- subject
- predicate
- Copyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.