public class RdfSerializationUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.hp.hpl.jena.graph.Node |
lastModifiedPredicate
The RDF predicate that will indicate the last-modified date of the node.
|
static com.hp.hpl.jena.graph.Node |
primaryTypePredicate
The RDF predicate that will indicate the primary node type.
|
protected static org.joda.time.format.DateTimeFormatter |
RFC2822DATEFORMAT
DateTimeFormatter for RFC2822 (used in HTTP headers), e.g.:
Mon, 01 Jul 2013 07:51:23Z
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getFirstValueForPredicate(com.hp.hpl.jena.query.Dataset 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
|
static void |
setCachingHeaders(javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
com.hp.hpl.jena.query.Dataset rdf,
javax.ws.rs.core.UriInfo uriInfo)
Set the cache control and last modified HTTP headers from data in the
graph
|
public static com.hp.hpl.jena.graph.Node primaryTypePredicate
public static com.hp.hpl.jena.graph.Node lastModifiedPredicate
protected static org.joda.time.format.DateTimeFormatter RFC2822DATEFORMAT
public static String getFirstValueForPredicate(com.hp.hpl.jena.query.Dataset 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.