org.daml.validator
Class Validator

java.lang.Object
  |
  +--org.daml.validator.Validator

public class Validator
extends java.lang.Object


Field Summary
 int maxIndications
          The maximum number of indications to show.
static java.lang.String version
          Version of the validator
 
Constructor Summary
Validator()
           
Validator(java.lang.String preferenceFile)
           
Validator(java.lang.String[] args)
          Create Validator and parse arguments.
 
Method Summary
 void addModel(com.hp.hpl.mesa.rdf.jena.model.Model model)
          Adds RDF Model to the set of models used to validate against.
 void addURL(java.lang.String url, boolean recurse)
           
 void addURL(java.net.URL url, boolean recurse)
          Load URL to create a RDF Model and add that to the set of models to validate against.
 java.lang.String dropFileExtension(java.lang.String uri)
           
 void initialize()
          Initialize the validator by clearing out any previously loaded models.
static void initializeDAMLModel(DAMLModelImpl m)
          Associate predicates with the semantics of the DAML model
static void main(java.lang.String[] args)
          Main method for running the Validator as an application.
 void reset()
          Resets the indications and clears the backing model used to validate against.
 void run()
          Starts the validation process.
static void usage()
           
 void validate(com.hp.hpl.mesa.rdf.jena.model.Model validateModel, java.lang.String uri)
          Starts the validation process.
 void validateConsistentNamespaces(com.hp.hpl.mesa.rdf.jena.model.Model validateModel, DAMLModelImpl overallModel)
          Check the namespaces in the validateModel to see if they are identical to other namespaces with or without the file extension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

public static java.lang.String version
Version of the validator


maxIndications

public int maxIndications
The maximum number of indications to show.

Constructor Detail

Validator

public Validator(java.lang.String[] args)
Create Validator and parse arguments.


Validator

public Validator(java.lang.String preferenceFile)
          throws java.lang.Exception

Validator

public Validator()
          throws java.lang.Exception
Method Detail

usage

public static void usage()

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Main method for running the Validator as an application.

java.lang.Exception

initialize

public void initialize()
Initialize the validator by clearing out any previously loaded models.


reset

public void reset()
Resets the indications and clears the backing model used to validate against.


run

public void run()
         throws java.lang.Exception
Starts the validation process.

java.lang.Exception

initializeDAMLModel

public static void initializeDAMLModel(DAMLModelImpl m)
Associate predicates with the semantics of the DAML model


addModel

public void addModel(com.hp.hpl.mesa.rdf.jena.model.Model model)
              throws com.hp.hpl.mesa.rdf.jena.model.RDFException
Adds RDF Model to the set of models used to validate against.

com.hp.hpl.mesa.rdf.jena.model.RDFException

addURL

public void addURL(java.net.URL url,
                   boolean recurse)
            throws com.hp.hpl.mesa.rdf.jena.model.RDFException
Load URL to create a RDF Model and add that to the set of models to validate against.

com.hp.hpl.mesa.rdf.jena.model.RDFException

addURL

public void addURL(java.lang.String url,
                   boolean recurse)
            throws com.hp.hpl.mesa.rdf.jena.model.RDFException
com.hp.hpl.mesa.rdf.jena.model.RDFException

validateConsistentNamespaces

public void validateConsistentNamespaces(com.hp.hpl.mesa.rdf.jena.model.Model validateModel,
                                         DAMLModelImpl overallModel)
Check the namespaces in the validateModel to see if they are identical to other namespaces with or without the file extension.


dropFileExtension

public java.lang.String dropFileExtension(java.lang.String uri)

validate

public void validate(com.hp.hpl.mesa.rdf.jena.model.Model validateModel,
                     java.lang.String uri)
              throws com.hp.hpl.mesa.rdf.jena.model.RDFException
Starts the validation process.

com.hp.hpl.mesa.rdf.jena.model.RDFException