net.fortytwo.linkeddata
Class RDFUtils
java.lang.Object
net.fortytwo.linkeddata.RDFUtils
public final class RDFUtils
- extends Object
- Author:
- Joshua Shinavier (http://fortytwo.net)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createOutputAdapter
public static SesameOutputAdapter createOutputAdapter(OutputStream out,
org.openrdf.rio.RDFFormat format)
throws net.fortytwo.ripple.RippleException
- Throws:
net.fortytwo.ripple.RippleException
isHttpUri
public static boolean isHttpUri(org.openrdf.model.URI uri)
inferContextURI
public static org.openrdf.model.URI inferContextURI(org.openrdf.model.Resource subject,
org.openrdf.model.ValueFactory valueFactory)
throws net.fortytwo.ripple.RippleException
- Throws:
net.fortytwo.ripple.RippleException
removeFragmentIdentifier
public static String removeFragmentIdentifier(String uri)
- Strips the fragment identifier of a (usually) HTTP URI.
- Parameters:
uri - a URI possibly containing a fragment identifier, e.g. http://example.org/foo#bar
- Returns:
- the URI without a fragment identifier, e.g. http://example.org/foo
findGraphUri
public static String findGraphUri(String uri)
Copyright © 2007-2013. All Rights Reserved.