Class NaturalFullRDFTranslator
java.lang.Object
fr.inria.rules.integraal.io.rdf.NaturalFullRDFTranslator
- All Implemented Interfaces:
RDFTranslator
Converts the given RDF statement into an Atom.
If the predicate is rdf:type, we create a unary predicate to represent
class membership; otherwise we create a binary predicate with (subject, object).
This version also uses XSD parsing for typed RDF literals, so that numeric, boolean, dateTime, etc. are stored as typed Java objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatementToAtom(org.eclipse.rdf4j.model.Statement st) Translate (convert) RDF statements (triples) into atomsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RDFTranslator
toTerm
-
Constructor Details
-
NaturalFullRDFTranslator
public NaturalFullRDFTranslator()Creates a full RDF translator.
-
-
Method Details
-
statementToAtom
Description copied from interface:RDFTranslatorTranslate (convert) RDF statements (triples) into atoms- Specified by:
statementToAtomin interfaceRDFTranslator- Parameters:
st- the rdf statement to convert- Returns:
- the atom corresponding to the given statement according to the translator implementation
-