edu.stanford.smi.protegex.storage.rdf
Class RDFFrameCreator
java.lang.Object
|
+--edu.stanford.smi.protegex.storage.rdf.RDFFrameCreator
- All Implemented Interfaces:
- FrameCreator
- Direct Known Subclasses:
- RDFRTFrameCreator
- public class RDFFrameCreator
- extends Object
- implements FrameCreator
Method Summary |
void |
add(org.w3c.rdf.model.Model model,
org.w3c.rdf.model.Statement statement)
|
void |
addAssociatedFacet(org.w3c.rdf.model.Resource slotResource,
WalkerFrame associatedFacet)
|
void |
addComment(org.w3c.rdf.model.Model model,
org.w3c.rdf.model.Resource resource,
String comment)
|
void |
addInverseSlot(org.w3c.rdf.model.Resource slotResource,
WalkerFrame inverseSlot)
|
void |
addIsAbstract(org.w3c.rdf.model.Resource clsResource,
boolean isAbstract)
|
void |
addLabel(org.w3c.rdf.model.Model model,
WalkerFrame frame)
|
void |
addOwnSlotValues(WalkerFrame instance,
WalkerFrame slot,
Collection values)
|
void |
addSlotRestriction(org.w3c.rdf.model.Resource slotResource,
WalkerSlotRestriction slotRestriction)
|
void |
addValues(org.w3c.rdf.model.Model model,
org.w3c.rdf.model.Resource resource,
org.w3c.rdf.model.Resource property,
Collection values)
|
void |
attachSlot(WalkerFrame cls,
WalkerFrame slot,
boolean direct,
WalkerSlotRestriction overriddenSlotRestriciton,
String overriddenDocumentation)
|
void |
createCls(WalkerFrame cls,
Collection superclasses,
WalkerFrame type,
boolean isAbstract,
String documentation)
|
void |
createInstance(WalkerFrame inst,
WalkerFrame type,
String documentation)
|
void |
createSlot(WalkerFrame slot,
WalkerFrame type,
Collection superslots,
WalkerFrame inverseSlot,
WalkerFrame associatedFacet,
WalkerSlotRestriction slotRestriction,
String documentation)
|
void |
error(Exception exc)
|
void |
error(String message)
|
void |
finish()
|
org.w3c.rdf.model.Resource |
getStandardClass()
|
org.w3c.rdf.model.Resource |
getStandardSlot()
|
org.w3c.rdf.model.Resource |
getThing()
|
org.w3c.rdf.model.Literal |
literal(int n)
|
org.w3c.rdf.model.Literal |
literal(String string)
|
void |
overrideSlotRestriction(WalkerFrame cls,
WalkerFrame slot,
org.w3c.rdf.model.Resource clsResource,
org.w3c.rdf.model.Resource slotResource,
WalkerSlotRestriction slotRestriction,
String overriddenDocumentation)
|
void |
remove(org.w3c.rdf.model.Model model,
org.w3c.rdf.model.Statement statement)
|
org.w3c.rdf.model.Resource |
resource(String namespace,
String name)
|
org.w3c.rdf.model.Resource |
resource(WalkerFrame frame)
|
boolean |
singleAllowedClass()
|
void |
start()
|
org.w3c.rdf.model.Statement |
statement(org.w3c.rdf.model.Resource subject,
org.w3c.rdf.model.Resource predicate,
org.w3c.rdf.model.RDFNode object)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_namespaces
public Namespaces _namespaces
_rdfFactory
public org.w3c.rdf.util.RDFFactory _rdfFactory
_nodeFactory
public org.w3c.rdf.model.NodeFactory _nodeFactory
_rdfsModel
public org.w3c.rdf.model.Model _rdfsModel
_rdfModel
public org.w3c.rdf.model.Model _rdfModel
_resources
public Hashtable _resources
_classes
public HashSet _classes
_slots
public HashSet _slots
RDFFrameCreator
public RDFFrameCreator(String classesFileName,
String instancesFileName,
Namespaces namespaces,
Collection errors)
RDFFrameCreator
public RDFFrameCreator(Writer rdfsModel,
Writer rdfModel,
Namespaces namespaces,
Collection errors)
start
public void start()
- Specified by:
start
in interface FrameCreator
createCls
public void createCls(WalkerFrame cls,
Collection superclasses,
WalkerFrame type,
boolean isAbstract,
String documentation)
- Specified by:
createCls
in interface FrameCreator
singleAllowedClass
public boolean singleAllowedClass()
- Specified by:
singleAllowedClass
in interface FrameCreator
addIsAbstract
public void addIsAbstract(org.w3c.rdf.model.Resource clsResource,
boolean isAbstract)
createInstance
public void createInstance(WalkerFrame inst,
WalkerFrame type,
String documentation)
- Specified by:
createInstance
in interface FrameCreator
createSlot
public void createSlot(WalkerFrame slot,
WalkerFrame type,
Collection superslots,
WalkerFrame inverseSlot,
WalkerFrame associatedFacet,
WalkerSlotRestriction slotRestriction,
String documentation)
- Specified by:
createSlot
in interface FrameCreator
addInverseSlot
public void addInverseSlot(org.w3c.rdf.model.Resource slotResource,
WalkerFrame inverseSlot)
addAssociatedFacet
public void addAssociatedFacet(org.w3c.rdf.model.Resource slotResource,
WalkerFrame associatedFacet)
addSlotRestriction
public void addSlotRestriction(org.w3c.rdf.model.Resource slotResource,
WalkerSlotRestriction slotRestriction)
attachSlot
public void attachSlot(WalkerFrame cls,
WalkerFrame slot,
boolean direct,
WalkerSlotRestriction overriddenSlotRestriciton,
String overriddenDocumentation)
- Specified by:
attachSlot
in interface FrameCreator
overrideSlotRestriction
public void overrideSlotRestriction(WalkerFrame cls,
WalkerFrame slot,
org.w3c.rdf.model.Resource clsResource,
org.w3c.rdf.model.Resource slotResource,
WalkerSlotRestriction slotRestriction,
String overriddenDocumentation)
addOwnSlotValues
public void addOwnSlotValues(WalkerFrame instance,
WalkerFrame slot,
Collection values)
- Specified by:
addOwnSlotValues
in interface FrameCreator
addValues
public void addValues(org.w3c.rdf.model.Model model,
org.w3c.rdf.model.Resource resource,
org.w3c.rdf.model.Resource property,
Collection values)
addComment
public void addComment(org.w3c.rdf.model.Model model,
org.w3c.rdf.model.Resource resource,
String comment)
addLabel
public void addLabel(org.w3c.rdf.model.Model model,
WalkerFrame frame)
finish
public void finish()
- Specified by:
finish
in interface FrameCreator
add
public void add(org.w3c.rdf.model.Model model,
org.w3c.rdf.model.Statement statement)
remove
public void remove(org.w3c.rdf.model.Model model,
org.w3c.rdf.model.Statement statement)
statement
public org.w3c.rdf.model.Statement statement(org.w3c.rdf.model.Resource subject,
org.w3c.rdf.model.Resource predicate,
org.w3c.rdf.model.RDFNode object)
resource
public org.w3c.rdf.model.Resource resource(String namespace,
String name)
resource
public org.w3c.rdf.model.Resource resource(WalkerFrame frame)
getThing
public org.w3c.rdf.model.Resource getThing()
getStandardClass
public org.w3c.rdf.model.Resource getStandardClass()
getStandardSlot
public org.w3c.rdf.model.Resource getStandardSlot()
literal
public org.w3c.rdf.model.Literal literal(String string)
literal
public org.w3c.rdf.model.Literal literal(int n)
error
public void error(String message)
- Specified by:
error
in interface FrameCreator
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.