de.hedenus.rdfschema
Class RDFDatabinding

java.lang.Object
  extended by de.hedenus.rdfschema.RDFDatabinding
Direct Known Subclasses:
OWLImplementation

public class RDFDatabinding
extends java.lang.Object

Main interface for RDF databinding.

Author:
Michael Hedenus

Constructor Summary
RDFDatabinding()
           
 
Method Summary
 RDFGraph getGraph()
           
 Resource getPropertyValue(java.lang.String resource, java.lang.String propertyURI)
           
 java.lang.String getPropertyValue(java.lang.String resource, java.lang.String propertyURI, java.util.Locale locale)
           
 java.lang.Object getPropertyValue(java.lang.String resource, java.lang.String propertyURI, java.lang.String datatypeURI)
          Returns the value of resource's property propertyURI interpreted as datatype specified by datatypeURI.
 Resource[] getPropertyValues(java.lang.String resource, java.lang.String propertyURI)
           
 Resource getResource(java.lang.String about)
          Returns the resource identified by about or null if thers no such resource.
 TypeFactory getTypeFactory()
           
protected  Mapping getTypeMapping()
           
 void parse(java.io.File file, java.lang.String encoding)
           
 void parse(java.io.InputStream in, java.lang.String encoding, java.lang.String documentBase)
           
 void parse(java.net.URL url)
           
protected  void parse(java.net.URL url, int statementType)
          For importing basic schemas.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFDatabinding

public RDFDatabinding()
Method Detail

getTypeMapping

protected Mapping getTypeMapping()

getGraph

public RDFGraph getGraph()

getTypeFactory

public TypeFactory getTypeFactory()

parse

protected void parse(java.net.URL url,
                     int statementType)
              throws java.io.IOException
For importing basic schemas.

Parameters:
url -
statementType -
Throws:
java.io.IOException

parse

public void parse(java.net.URL url)
           throws java.io.IOException,
                  XMLException
Throws:
java.io.IOException
XMLException

parse

public void parse(java.io.File file,
                  java.lang.String encoding)
           throws java.io.IOException,
                  XMLException
Throws:
java.io.IOException
XMLException

parse

public void parse(java.io.InputStream in,
                  java.lang.String encoding,
                  java.lang.String documentBase)
           throws java.io.IOException,
                  XMLException
Throws:
java.io.IOException
XMLException

getResource

public Resource getResource(java.lang.String about)
Returns the resource identified by about or null if thers no such resource.


getPropertyValue

public java.lang.Object getPropertyValue(java.lang.String resource,
                                         java.lang.String propertyURI,
                                         java.lang.String datatypeURI)
Returns the value of resource's property propertyURI interpreted as datatype specified by datatypeURI. If the value is not a RDF literal the result will be a de.hedenus.rdfschema.Resource.

Parameters:
resource -
propertyURI -
datatypeURI -
Returns:
the property value

getPropertyValues

public Resource[] getPropertyValues(java.lang.String resource,
                                    java.lang.String propertyURI)

getPropertyValue

public Resource getPropertyValue(java.lang.String resource,
                                 java.lang.String propertyURI)

getPropertyValue

public java.lang.String getPropertyValue(java.lang.String resource,
                                         java.lang.String propertyURI,
                                         java.util.Locale locale)