edu.stanford.smi.protegex.storage.rdf
Class RDFFrameWalker
java.lang.Object
|
+--edu.stanford.smi.protegex.storage.rdf.RDFFrameWalker
- All Implemented Interfaces:
- FrameWalker
- Direct Known Subclasses:
- RDFRTFrameWalker
- public class RDFFrameWalker
- extends Object
- implements FrameWalker
Method Summary |
void |
addObjects(HashSet set,
org.w3c.rdf.model.Model model)
|
void |
addSubjects(HashSet set,
org.w3c.rdf.model.Model model)
|
void |
createCls(org.w3c.rdf.model.Resource cls,
Collection superclasses,
org.w3c.rdf.model.Resource type,
boolean isAbstract,
String documentation)
|
void |
creatingSlot(org.w3c.rdf.model.Resource property,
org.w3c.rdf.model.Resource type)
|
void |
error(Exception exc)
|
void |
error(String string)
|
void |
finish()
|
org.w3c.rdf.model.Resource |
getAssociatedFacet(org.w3c.rdf.model.Resource property)
|
String |
getComment(org.w3c.rdf.model.Resource resource)
|
Collection |
getDirectSuperclasses(org.w3c.rdf.model.Resource cls)
|
org.w3c.rdf.model.Resource |
getDirectType(org.w3c.rdf.model.Resource resource)
|
int |
getIntValue(org.w3c.rdf.model.Model model,
org.w3c.rdf.model.Resource resource,
org.w3c.rdf.model.Resource property,
int defaultValue)
|
org.w3c.rdf.model.Resource |
getInverseProperty(org.w3c.rdf.model.Resource property)
|
boolean |
getIsAbstract(org.w3c.rdf.model.Resource cls)
|
String |
getLabel(org.w3c.rdf.model.RDFNode node)
|
String |
getLocalName(org.w3c.rdf.model.Resource resource)
|
String |
getNamespace(org.w3c.rdf.model.Resource resource)
|
org.w3c.rdf.model.Resource |
getRange(org.w3c.rdf.model.Resource property)
|
org.w3c.rdf.model.Resource |
getResourceValue(org.w3c.rdf.model.Model model,
org.w3c.rdf.model.Resource resource,
org.w3c.rdf.model.Resource property)
|
WalkerSlotRestriction |
getSlotRestriction(org.w3c.rdf.model.Resource property)
|
String |
getStringValue(org.w3c.rdf.model.Model model,
org.w3c.rdf.model.Resource resource,
org.w3c.rdf.model.Resource property)
|
Collection |
getStringValues(org.w3c.rdf.model.Model model,
org.w3c.rdf.model.Resource resource,
org.w3c.rdf.model.Resource property)
|
Collection |
getSuperclasses(org.w3c.rdf.model.Resource cls)
|
String |
getURI(org.w3c.rdf.model.Resource resource)
|
org.w3c.rdf.model.RDFNode |
getValue(org.w3c.rdf.model.Model model,
org.w3c.rdf.model.Resource resource,
org.w3c.rdf.model.Resource property)
|
Collection |
getValues(org.w3c.rdf.model.Model model,
org.w3c.rdf.model.Resource resource,
org.w3c.rdf.model.Resource property)
|
boolean |
init()
|
boolean |
isEncodingSystemResource(org.w3c.rdf.model.Resource resource)
|
boolean |
isSimpleSystemProperty(org.w3c.rdf.model.Resource resource)
|
boolean |
isSystemResource(org.w3c.rdf.model.Resource resource)
|
WalkerFrame |
newWalkerFrame(org.w3c.rdf.model.Resource resource)
|
org.w3c.rdf.model.Resource |
pickMainType(Collection types)
|
void |
walk(FrameCreator frameCreator)
|
void |
walkClasses()
|
void |
walkSlotOverrides()
|
void |
walkUnhandledTypes()
|
void |
walkValues()
|
WalkerFrame |
wframe(org.w3c.rdf.model.Resource resource)
|
Collection |
wframes(Collection values)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_namespaces
public Namespaces _namespaces
_creator
public FrameCreator _creator
_rdfFactory
public org.w3c.rdf.util.RDFFactory _rdfFactory
_model
public org.w3c.rdf.model.Model _model
_spClosure
public org.w3c.rdf.model.Model _spClosure
_rdfSchemaModel
public edu.stanford.db.rdf.schema.RDFSchemaModel _rdfSchemaModel
_classes
public HashSet _classes
_properties
public HashSet _properties
_instances
public HashSet _instances
_unhandledTypes
public HashMap _unhandledTypes
RDFFrameWalker
public RDFFrameWalker(String classesFileName,
String instancesFileName,
String namespace,
Namespaces namespaces)
RDFFrameWalker
public RDFFrameWalker(org.xml.sax.InputSource classes,
org.xml.sax.InputSource instances,
String namespace,
Namespaces namespaces)
walk
public void walk(FrameCreator frameCreator)
- Specified by:
walk
in interface FrameWalker
init
public boolean init()
walkClasses
public void walkClasses()
createCls
public void createCls(org.w3c.rdf.model.Resource cls,
Collection superclasses,
org.w3c.rdf.model.Resource type,
boolean isAbstract,
String documentation)
creatingSlot
public void creatingSlot(org.w3c.rdf.model.Resource property,
org.w3c.rdf.model.Resource type)
getSlotRestriction
public WalkerSlotRestriction getSlotRestriction(org.w3c.rdf.model.Resource property)
walkSlotOverrides
public void walkSlotOverrides()
walkValues
public void walkValues()
finish
public void finish()
walkUnhandledTypes
public void walkUnhandledTypes()
getDirectType
public org.w3c.rdf.model.Resource getDirectType(org.w3c.rdf.model.Resource resource)
pickMainType
public org.w3c.rdf.model.Resource pickMainType(Collection types)
getComment
public String getComment(org.w3c.rdf.model.Resource resource)
getDirectSuperclasses
public Collection getDirectSuperclasses(org.w3c.rdf.model.Resource cls)
getSuperclasses
public Collection getSuperclasses(org.w3c.rdf.model.Resource cls)
getIsAbstract
public boolean getIsAbstract(org.w3c.rdf.model.Resource cls)
getInverseProperty
public org.w3c.rdf.model.Resource getInverseProperty(org.w3c.rdf.model.Resource property)
getAssociatedFacet
public org.w3c.rdf.model.Resource getAssociatedFacet(org.w3c.rdf.model.Resource property)
getRange
public org.w3c.rdf.model.Resource getRange(org.w3c.rdf.model.Resource property)
getValues
public Collection getValues(org.w3c.rdf.model.Model model,
org.w3c.rdf.model.Resource resource,
org.w3c.rdf.model.Resource property)
getStringValues
public Collection getStringValues(org.w3c.rdf.model.Model model,
org.w3c.rdf.model.Resource resource,
org.w3c.rdf.model.Resource property)
getValue
public org.w3c.rdf.model.RDFNode getValue(org.w3c.rdf.model.Model model,
org.w3c.rdf.model.Resource resource,
org.w3c.rdf.model.Resource property)
getResourceValue
public org.w3c.rdf.model.Resource getResourceValue(org.w3c.rdf.model.Model model,
org.w3c.rdf.model.Resource resource,
org.w3c.rdf.model.Resource property)
getStringValue
public String getStringValue(org.w3c.rdf.model.Model model,
org.w3c.rdf.model.Resource resource,
org.w3c.rdf.model.Resource property)
getIntValue
public int getIntValue(org.w3c.rdf.model.Model model,
org.w3c.rdf.model.Resource resource,
org.w3c.rdf.model.Resource property,
int defaultValue)
wframe
public WalkerFrame wframe(org.w3c.rdf.model.Resource resource)
newWalkerFrame
public WalkerFrame newWalkerFrame(org.w3c.rdf.model.Resource resource)
wframes
public Collection wframes(Collection values)
getLabel
public String getLabel(org.w3c.rdf.model.RDFNode node)
getNamespace
public String getNamespace(org.w3c.rdf.model.Resource resource)
getLocalName
public String getLocalName(org.w3c.rdf.model.Resource resource)
getURI
public String getURI(org.w3c.rdf.model.Resource resource)
addObjects
public void addObjects(HashSet set,
org.w3c.rdf.model.Model model)
addSubjects
public void addSubjects(HashSet set,
org.w3c.rdf.model.Model model)
isSystemResource
public boolean isSystemResource(org.w3c.rdf.model.Resource resource)
isSimpleSystemProperty
public boolean isSimpleSystemProperty(org.w3c.rdf.model.Resource resource)
isEncodingSystemResource
public boolean isEncodingSystemResource(org.w3c.rdf.model.Resource resource)
error
public void error(String string)
error
public void error(Exception exc)
Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.