org.topbraid.core.model.rdf
Class RDFResource

java.lang.Object
  extended by com.hp.hpl.jena.enhanced.Polymorphic
      extended by com.hp.hpl.jena.enhanced.EnhNode
          extended by com.hp.hpl.jena.rdf.model.impl.ResourceImpl
              extended by org.topbraid.core.model.rdf.RDFResource
All Implemented Interfaces:
com.hp.hpl.jena.graph.FrontsNode, com.hp.hpl.jena.rdf.model.RDFNode, com.hp.hpl.jena.rdf.model.Resource
Direct Known Subclasses:
OWLDataRange, RDFProperty, RDFSClass

public class RDFResource
extends com.hp.hpl.jena.rdf.model.impl.ResourceImpl

A convenience layer on top of Jena Resource with additional methods that make life easier. Use pattern: just convert your existing Resource into an instance of this class. NOTE: This is work in progress and should not be used outside of TBC yet.

Author:
Holger Knublauch

Field Summary
 
Fields inherited from class com.hp.hpl.jena.rdf.model.impl.ResourceImpl
factory, rdfNodeFactory
 
Fields inherited from class com.hp.hpl.jena.enhanced.EnhNode
enhGraph, node
 
Constructor Summary
RDFResource(com.hp.hpl.jena.rdf.model.Resource resource)
           
 
Method Summary
 java.lang.Integer getInteger(com.hp.hpl.jena.rdf.model.Property predicate)
           
 com.hp.hpl.jena.rdf.model.RDFNode getRDFNode(com.hp.hpl.jena.rdf.model.Property predicate)
           
 RDFProperty getRDFProperty(com.hp.hpl.jena.rdf.model.Property predicate)
           
 RDFResource getRDFResource(com.hp.hpl.jena.rdf.model.Property predicate)
           
 RDFSClass getRDFSClass(com.hp.hpl.jena.rdf.model.Property predicate)
           
 com.hp.hpl.jena.rdf.model.Resource getResource(com.hp.hpl.jena.rdf.model.Property predicate)
           
 java.lang.String getString(com.hp.hpl.jena.rdf.model.Property predicate)
           
 java.util.Iterator listPropertyValues(com.hp.hpl.jena.rdf.model.Property predicate)
           
 void setProperty(com.hp.hpl.jena.rdf.model.Property predicate, int value)
           
 void setProperty(com.hp.hpl.jena.rdf.model.Property predicate, java.lang.Integer value)
           
 void setProperty(com.hp.hpl.jena.rdf.model.Property predicate, com.hp.hpl.jena.rdf.model.RDFNode value)
           
 void setProperty(com.hp.hpl.jena.rdf.model.Property predicate, java.lang.String value)
           
 
Methods inherited from class com.hp.hpl.jena.rdf.model.impl.ResourceImpl
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, getId, getLocalName, getModel, getModelCom, getNameSpace, getNode, getProperty, getRequiredProperty, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, mustHaveModel, removeAll, removeProperties, toString, visitWith
 
Methods inherited from class com.hp.hpl.jena.enhanced.EnhNode
as, asNode, canAs, canSupport, convertTo, equals, getGraph, getPersonality, hashCode, isAnon, isLiteral, isResource, isURIResource, isValid, viewAs
 
Methods inherited from class com.hp.hpl.jena.enhanced.Polymorphic
addView, already, alreadyHasView, asInternal, supports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.rdf.model.Resource
equals
 
Methods inherited from interface com.hp.hpl.jena.rdf.model.RDFNode
as, canAs, isAnon, isLiteral, isResource, isURIResource
 
Methods inherited from interface com.hp.hpl.jena.graph.FrontsNode
asNode
 

Constructor Detail

RDFResource

public RDFResource(com.hp.hpl.jena.rdf.model.Resource resource)
Method Detail

getInteger

public java.lang.Integer getInteger(com.hp.hpl.jena.rdf.model.Property predicate)

getRDFNode

public com.hp.hpl.jena.rdf.model.RDFNode getRDFNode(com.hp.hpl.jena.rdf.model.Property predicate)

getRDFProperty

public RDFProperty getRDFProperty(com.hp.hpl.jena.rdf.model.Property predicate)

getRDFResource

public RDFResource getRDFResource(com.hp.hpl.jena.rdf.model.Property predicate)

getRDFSClass

public RDFSClass getRDFSClass(com.hp.hpl.jena.rdf.model.Property predicate)

getResource

public com.hp.hpl.jena.rdf.model.Resource getResource(com.hp.hpl.jena.rdf.model.Property predicate)

getString

public java.lang.String getString(com.hp.hpl.jena.rdf.model.Property predicate)

listPropertyValues

public java.util.Iterator listPropertyValues(com.hp.hpl.jena.rdf.model.Property predicate)

setProperty

public void setProperty(com.hp.hpl.jena.rdf.model.Property predicate,
                        int value)

setProperty

public void setProperty(com.hp.hpl.jena.rdf.model.Property predicate,
                        java.lang.Integer value)

setProperty

public void setProperty(com.hp.hpl.jena.rdf.model.Property predicate,
                        com.hp.hpl.jena.rdf.model.RDFNode value)

setProperty

public void setProperty(com.hp.hpl.jena.rdf.model.Property predicate,
                        java.lang.String value)