public class MetaDataFactory extends Object
| Constructor and Description |
|---|
MetaDataFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
buildMetaData(org.apache.jena.rdf.model.Resource imageResource,
org.hobbit.core.data.ImageMetaData metadata,
org.apache.jena.rdf.model.Model model,
String source,
Date date) |
static org.apache.jena.rdf.model.Model |
byteArrayToModel(byte[] data,
String lang) |
static org.apache.jena.rdf.model.Model |
getModelWithUniqueBenchmark(org.apache.jena.rdf.model.Model model,
String benchmarkUri)
Creates a new model that contains all triples of the old model except the
definitions of other hobbit:Benchmark elements than the benchmark with the
given URI.
|
protected static org.apache.jena.rdf.model.Model |
getModelWithUniqueResource(org.apache.jena.rdf.model.Model model,
String uri,
org.apache.jena.rdf.model.Resource type) |
static org.apache.jena.rdf.model.Model |
getModelWithUniqueSystem(org.apache.jena.rdf.model.Model model,
String systemUri)
Creates a new model that contains all triples of the old model except the
definitions of other
hobbit:SystemInstance elements than the resource
with the given URI. |
static List<org.hobbit.core.data.BenchmarkMetaData> |
modelToBenchmarkMetaData(org.apache.jena.rdf.model.Model model) |
static List<org.hobbit.core.data.BenchmarkMetaData> |
modelToBenchmarkMetaData(org.apache.jena.rdf.model.Model model,
String source,
Date date) |
static List<org.hobbit.core.data.SystemMetaData> |
modelToSystemMetaData(org.apache.jena.rdf.model.Model model) |
static List<org.hobbit.core.data.SystemMetaData> |
modelToSystemMetaData(org.apache.jena.rdf.model.Model model,
String source,
Date date) |
static org.apache.jena.rdf.model.Model |
ttlStringToModel(String modelString,
String lang) |
public static List<org.hobbit.core.data.BenchmarkMetaData> modelToBenchmarkMetaData(org.apache.jena.rdf.model.Model model)
public static List<org.hobbit.core.data.BenchmarkMetaData> modelToBenchmarkMetaData(org.apache.jena.rdf.model.Model model, String source, Date date)
public static List<org.hobbit.core.data.SystemMetaData> modelToSystemMetaData(org.apache.jena.rdf.model.Model model)
public static List<org.hobbit.core.data.SystemMetaData> modelToSystemMetaData(org.apache.jena.rdf.model.Model model, String source, Date date)
protected static void buildMetaData(org.apache.jena.rdf.model.Resource imageResource,
org.hobbit.core.data.ImageMetaData metadata,
org.apache.jena.rdf.model.Model model,
String source,
Date date)
public static org.apache.jena.rdf.model.Model ttlStringToModel(String modelString, String lang)
public static org.apache.jena.rdf.model.Model byteArrayToModel(byte[] data,
String lang)
public static org.apache.jena.rdf.model.Model getModelWithUniqueBenchmark(org.apache.jena.rdf.model.Model model,
String benchmarkUri)
model - the model from which all triples will be copiedbenchmarkUri - the URI of the only benchmark which is not removed from the copied
modelpublic static org.apache.jena.rdf.model.Model getModelWithUniqueSystem(org.apache.jena.rdf.model.Model model,
String systemUri)
hobbit:SystemInstance elements than the resource
with the given URI. Removing a system means that all triples are removed that
have a system URI as subject. A system URI is a URI of a resource s
for which a triple s rdf:type hobbit:SystemInstance can be found in
the given model.model - the model from which all triples will be copiedsystemUri - the URI of the only system which is not removed from the copied
modelprotected static org.apache.jena.rdf.model.Model getModelWithUniqueResource(org.apache.jena.rdf.model.Model model,
String uri,
org.apache.jena.rdf.model.Resource type)
Copyright © 2017–2018. All rights reserved.