public class ModelUtils extends Object
| Constructor and Description |
|---|
ModelUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.hp.hpl.jena.rdf.model.Model |
combine(Collection<com.hp.hpl.jena.rdf.model.Model> models) |
static String[] |
decompose(String uri,
NavigableMap<String,String> prefixMap)
An efficient method for separating a URI into namespace and prefix,
given a set of arbitrary namespace prefixes.
|
static Map<com.hp.hpl.jena.rdf.model.Resource,Set<com.hp.hpl.jena.rdf.model.Resource>> |
extractDirectSuperClassMap(com.hp.hpl.jena.rdf.model.Model model)
Extracts a mapping childClass -> parentClass from a given Model.
|
static com.hp.hpl.jena.rdf.model.Model |
filterBySubject(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Resource resource) |
static String |
prettyUri(String uri,
NavigableMap<String,String> prefixMap) |
static com.hp.hpl.jena.rdf.model.Model |
read(File file)
FIXME Extend to Uris
|
static com.hp.hpl.jena.rdf.model.Model |
read(File file,
String lang) |
static com.hp.hpl.jena.rdf.model.Model |
read(InputStream in,
String lang) |
static com.hp.hpl.jena.rdf.model.Model |
read(com.hp.hpl.jena.rdf.model.Model model,
File file,
String lang) |
static com.hp.hpl.jena.rdf.model.Model |
read(com.hp.hpl.jena.rdf.model.Model model,
InputStream in,
String lang) |
static String |
toString(com.hp.hpl.jena.rdf.model.Model model) |
static String |
toString(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.RDFWriter writer) |
static String |
toString(com.hp.hpl.jena.rdf.model.Model model,
String format) |
static com.hp.hpl.jena.rdf.model.Model |
write(com.hp.hpl.jena.rdf.model.Model model,
File file) |
static com.hp.hpl.jena.rdf.model.Model |
write(com.hp.hpl.jena.rdf.model.Model model,
File file,
String lang) |
public static Map<com.hp.hpl.jena.rdf.model.Resource,Set<com.hp.hpl.jena.rdf.model.Resource>> extractDirectSuperClassMap(com.hp.hpl.jena.rdf.model.Model model)
model - public static com.hp.hpl.jena.rdf.model.Model filterBySubject(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Resource resource)
model - resource - public static com.hp.hpl.jena.rdf.model.Model combine(Collection<com.hp.hpl.jena.rdf.model.Model> models)
public static com.hp.hpl.jena.rdf.model.Model read(InputStream in, String lang) throws IOException
IOExceptionpublic static com.hp.hpl.jena.rdf.model.Model read(File file) throws Exception
file - Exceptionpublic static com.hp.hpl.jena.rdf.model.Model read(File file, String lang) throws IOException
IOExceptionpublic static com.hp.hpl.jena.rdf.model.Model read(com.hp.hpl.jena.rdf.model.Model model,
InputStream in,
String lang)
throws IOException
IOExceptionpublic static com.hp.hpl.jena.rdf.model.Model read(com.hp.hpl.jena.rdf.model.Model model,
File file,
String lang)
throws IOException
IOExceptionpublic static com.hp.hpl.jena.rdf.model.Model write(com.hp.hpl.jena.rdf.model.Model model,
File file)
throws IOException
IOExceptionpublic static com.hp.hpl.jena.rdf.model.Model write(com.hp.hpl.jena.rdf.model.Model model,
File file,
String lang)
throws IOException
IOExceptionpublic static String toString(com.hp.hpl.jena.rdf.model.Model model)
public static String toString(com.hp.hpl.jena.rdf.model.Model model, com.hp.hpl.jena.rdf.model.RDFWriter writer)
public static String[] decompose(String uri, NavigableMap<String,String> prefixMap)
uri - prefixMap - public static String prettyUri(String uri, NavigableMap<String,String> prefixMap)
Copyright © 2015. All rights reserved.