Class NaturalFullRDFTranslator

java.lang.Object
fr.inria.rules.integraal.io.rdf.NaturalFullRDFTranslator
All Implemented Interfaces:
RDFTranslator

public class NaturalFullRDFTranslator extends Object implements 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 Details

    • NaturalFullRDFTranslator

      public NaturalFullRDFTranslator()
      Creates a full RDF translator.
  • Method Details

    • statementToAtom

      public Atom statementToAtom(org.eclipse.rdf4j.model.Statement st)
      Description copied from interface: RDFTranslator
      Translate (convert) RDF statements (triples) into atoms
      Specified by:
      statementToAtom in interface RDFTranslator
      Parameters:
      st - the rdf statement to convert
      Returns:
      the atom corresponding to the given statement according to the translator implementation