public final class RdfModelConverter extends Object
Models to PositiveLiteral sets.
Converts each <subject, predicate, object> triple statement of the
given rdfModel into an PositiveLiteral of the form
TRIPLE(subject, predicate, object). The ternary predicate used for
all literals generated from RDF triples is
RDF_TRIPLE_PREDICATE. Subject, predicate and object
Values are converted to corresponding Terms:
URIs are converted to Constants with the escaped URI
String as name.Literals are converted to Constants with names containing
the canonical form of the literal label, the data type and the language.BNodes are converted to Blanks with the generated blank
ID as name. BNodes have unique generated IDs in the context a
Models. Blanks with the same name loaded from different models will
have different ids.| Modifier and Type | Field and Description |
|---|---|
static org.semanticweb.vlog4j.core.model.api.Predicate |
RDF_TRIPLE_PREDICATE
The ternary predicate of literals generated from RDF triples.
|
static String |
RDF_TRIPLE_PREDICATE_NAME
The name of the ternary predicate of literals generated from RDF triples:
"TRIPLE".
|
| Modifier and Type | Method and Description |
|---|---|
static Set<org.semanticweb.vlog4j.core.model.api.Fact> |
rdfModelToFacts(org.openrdf.model.Model rdfModel)
Converts each
<subject, predicate, object> triple statement of the
given rdfModel into a PositiveLiteral of the form
TRIPLE(subject, predicate, object). |
public static final String RDF_TRIPLE_PREDICATE_NAME
public static final org.semanticweb.vlog4j.core.model.api.Predicate RDF_TRIPLE_PREDICATE
name(Predicate.getName()) "TRIPLE" and
arity(Predicate.getArity()) 3.public static Set<org.semanticweb.vlog4j.core.model.api.Fact> rdfModelToFacts(org.openrdf.model.Model rdfModel)
<subject, predicate, object> triple statement of the
given rdfModel into a PositiveLiteral of the form
TRIPLE(subject, predicate, object). See
RDF_TRIPLE_PREDICATE, the ternary predicate used
for all literals generated from RDF triples.rdfModel - a Model of an RDF document, containing triple
statements that will be converter to facts.rdfModel.Copyright © 2018‘2019 VLog4j Developers. Generated from source code published under the Apache License 2.0. For more information, see the VLog4j homepage