org.openrdf.repository.object.compiler.model
Class RDFClass
java.lang.Object
org.openrdf.repository.object.compiler.model.RDFEntity
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
| Fields inherited from class org.openrdf.repository.object.compiler.model.RDFEntity |
model, self |
| 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 |
RDFClass
public RDFClass(Model model,
Resource self)
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 namesnamespaces - prefix -> namespacedir - 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.