org.openrdf.repository.object.compiler.model
Class RDFClass

java.lang.Object
  extended by org.openrdf.repository.object.compiler.model.RDFEntity
      extended by org.openrdf.repository.object.compiler.model.RDFClass
All Implemented Interfaces:
Comparable<RDFEntity>

public class RDFClass
extends RDFEntity

Helper object for traversing the OWL model.

Author:
James Leigh

Field Summary
 
Fields inherited from class org.openrdf.repository.object.compiler.model.RDFEntity
model, self
 
Constructor Summary
RDFClass(Model model, Resource self)
           
 
Method Summary
 File generateSourceCode(File dir, JavaNameResolver resolver)
           
 Collection<RDFClass> getDeclaredMessages(JavaNameResolver resolver)
           
 Collection<RDFProperty> getDeclaredProperties()
           
 List<RDFProperty> getFunctionalDatatypeProperties()
           
 Object getLanguage()
           
 List<? extends Value> getList(URI pred)
           
 List<RDFProperty> getParameters()
           
 RDFClass getRange(RDFProperty property)
           
 RDFClass getRange(URI pred)
           
 RDFProperty getResponseProperty()
           
protected  Collection<RDFClass> getRestrictions()
           
 boolean isDatatype()
           
 boolean isEmpty(JavaNameResolver resolver)
           
 boolean isFunctional(RDFProperty property)
           
protected  boolean isFunctionalProperty(RDFProperty property)
           
 boolean isMinCardinality(RDFProperty property)
           
 void msgCompile(JavaCompiler compiler, Set<String> names, File dir, ClassLoader cl, List<File> classpath)
           
 Set<String> msgWriteSource(JavaNameResolver resolver, Map<String,String> namespaces, File dir)
          Compiles the method into a collection of classes and resource stored in the given directory.
 boolean precedes(RDFClass p)
           
 
Methods inherited from class org.openrdf.repository.object.compiler.model.RDFEntity
compareTo, createSourceFile, equals, getModel, getRDFClass, getRDFClasses, getRDFProperties, getRDFProperties, getResource, getStatements, getString, getStrings, getURI, getValues, hashCode, isA, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RDFClass

public RDFClass(Model model,
                Resource self)
Method Detail

isDatatype

public boolean isDatatype()

getRange

public RDFClass getRange(URI pred)

getRange

public RDFClass getRange(RDFProperty property)

isFunctional

public boolean isFunctional(RDFProperty property)

getList

public List<? extends Value> getList(URI pred)

getParameters

public List<RDFProperty> getParameters()

getResponseProperty

public RDFProperty getResponseProperty()

isMinCardinality

public boolean isMinCardinality(RDFProperty property)

isEmpty

public boolean isEmpty(JavaNameResolver resolver)

generateSourceCode

public File generateSourceCode(File dir,
                               JavaNameResolver resolver)
                        throws Exception
Throws:
Exception

getFunctionalDatatypeProperties

public List<RDFProperty> getFunctionalDatatypeProperties()

precedes

public boolean precedes(RDFClass p)

getDeclaredMessages

public Collection<RDFClass> getDeclaredMessages(JavaNameResolver resolver)

getDeclaredProperties

public Collection<RDFProperty> getDeclaredProperties()

getLanguage

public Object getLanguage()

msgWriteSource

public Set<String> msgWriteSource(JavaNameResolver resolver,
                                  Map<String,String> namespaces,
                                  File dir)
                           throws Exception
Compiles the method into a collection of classes and resource stored in the given directory.

Parameters:
resolver - utility class to look up corresponding Java names
namespaces - prefix -> namespace
dir - target directory of byte-code
Returns:
the full class name of the created role
Throws:
Exception

msgCompile

public void msgCompile(JavaCompiler compiler,
                       Set<String> names,
                       File dir,
                       ClassLoader cl,
                       List<File> classpath)
                throws ObjectCompileException
Throws:
ObjectCompileException

getRestrictions

protected Collection<RDFClass> getRestrictions()

isFunctionalProperty

protected boolean isFunctionalProperty(RDFProperty property)


Copyright © 2004-2011 James Leigh Services Inc.. All Rights Reserved.