org.openjena.riot.system
Class Checker

java.lang.Object
  extended by org.openjena.riot.system.Checker

public final class Checker
extends Object

A checker validates RDF terms.


Constructor Summary
Checker()
           
Checker(ErrorHandler handler)
           
 
Method Summary
 boolean check(com.hp.hpl.jena.graph.Node node, long line, long col)
           
 boolean check(com.hp.hpl.jena.graph.Triple triple, long line, long col)
          Check a triple - assumes individual nodes are legal
 boolean checkBlank(com.hp.hpl.jena.graph.Node node, long line, long col)
           
 boolean checkIRI(com.hp.hpl.jena.iri.IRI iri, long line, long col)
           
 boolean checkIRI(com.hp.hpl.jena.graph.Node node, long line, long col)
           
 boolean checkLiteral(com.hp.hpl.jena.graph.Node node, long line, long col)
           
 boolean checkTriple(com.hp.hpl.jena.graph.Node subject, com.hp.hpl.jena.graph.Node predicate, com.hp.hpl.jena.graph.Node object, long line, long col)
          Check a triple against the RDF rules for a triple : subject is a IRI or bnode, predicate is a IRI and object is an bnode, literal or IRI
 boolean checkVar(com.hp.hpl.jena.graph.Node node, long line, long col)
           
 NodeChecker getCheckBlankNodes()
           
 NodeChecker getCheckLiterals()
           
 NodeChecker getCheckURIs()
           
 NodeChecker getCheckVars()
           
 ErrorHandler getHandler()
           
 void setCheckBlankNodes(NodeChecker checkBlankNodes)
           
 void setCheckLiterals(NodeChecker checkLiterals)
           
 void setCheckURIs(NodeChecker checkURIs)
           
 void setCheckVars(NodeChecker checkVars)
           
 void setHandler(ErrorHandler handler)
           
static boolean validate(String msg, com.hp.hpl.jena.graph.Node subject, com.hp.hpl.jena.graph.Node predicate, com.hp.hpl.jena.graph.Node object)
           
static boolean validate(String msg, com.hp.hpl.jena.graph.Triple triple)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Checker

public Checker()

Checker

public Checker(ErrorHandler handler)
Method Detail

getHandler

public ErrorHandler getHandler()

setHandler

public void setHandler(ErrorHandler handler)

check

public boolean check(com.hp.hpl.jena.graph.Node node,
                     long line,
                     long col)

check

public boolean check(com.hp.hpl.jena.graph.Triple triple,
                     long line,
                     long col)
Check a triple - assumes individual nodes are legal


checkTriple

public boolean checkTriple(com.hp.hpl.jena.graph.Node subject,
                           com.hp.hpl.jena.graph.Node predicate,
                           com.hp.hpl.jena.graph.Node object,
                           long line,
                           long col)
Check a triple against the RDF rules for a triple : subject is a IRI or bnode, predicate is a IRI and object is an bnode, literal or IRI


validate

public static boolean validate(String msg,
                               com.hp.hpl.jena.graph.Triple triple)

validate

public static boolean validate(String msg,
                               com.hp.hpl.jena.graph.Node subject,
                               com.hp.hpl.jena.graph.Node predicate,
                               com.hp.hpl.jena.graph.Node object)

checkVar

public final boolean checkVar(com.hp.hpl.jena.graph.Node node,
                              long line,
                              long col)

checkLiteral

public final boolean checkLiteral(com.hp.hpl.jena.graph.Node node,
                                  long line,
                                  long col)

checkBlank

public final boolean checkBlank(com.hp.hpl.jena.graph.Node node,
                                long line,
                                long col)

checkIRI

public final boolean checkIRI(com.hp.hpl.jena.graph.Node node,
                              long line,
                              long col)

checkIRI

public final boolean checkIRI(com.hp.hpl.jena.iri.IRI iri,
                              long line,
                              long col)

getCheckLiterals

public final NodeChecker getCheckLiterals()

setCheckLiterals

public final void setCheckLiterals(NodeChecker checkLiterals)

getCheckURIs

public final NodeChecker getCheckURIs()

setCheckURIs

public final void setCheckURIs(NodeChecker checkURIs)

getCheckBlankNodes

public final NodeChecker getCheckBlankNodes()

setCheckBlankNodes

public final void setCheckBlankNodes(NodeChecker checkBlankNodes)

getCheckVars

public final NodeChecker getCheckVars()

setCheckVars

public final void setCheckVars(NodeChecker checkVars)


Licenced under the Apache License, Version 2.0