Class RawRDFTranslator

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

public class RawRDFTranslator extends Object implements RDFTranslator
Converts an RDF statement into an Atom with predicate "triple" and arity = 3.

The resulting Atom is of the form: triple(subjectTerm, predicateTerm, objectTerm)

  • Constructor Details

    • RawRDFTranslator

      public RawRDFTranslator()
      Creates the raw 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