Deprecated API


Contents
Deprecated Interfaces
com.hp.hpl.jena.ontology.daml.DAMLClassExpression
          The role of DAMLClassExpression has been combined with DAMLClass 
com.hp.hpl.jena.rdf.model.ModelLock
          For naming compatibility - use Lock interface instead 
 

Deprecated Classes
com.hp.hpl.jena.util.HashUtils
          use CollectionFactory methods 
com.hp.hpl.jena.vocabulary.JMS
            
com.hp.hpl.jena.rdf.arp.URI
          The code for RDF URI References and IRIs is currently being updated. 
 

Deprecated Exceptions
com.hp.hpl.jena.rdf.arp.MalformedURIException
          The code for RDF URI References and IRIs is in the process of being updated. 
 

Deprecated Errors
com.hp.hpl.jena.rdf.model.RDFError
          No longer used. 
 

Deprecated Fields
com.hp.hpl.jena.graph.query.Query.dontSort
          - use TripleSorter.dontSort instead. 
com.hp.hpl.jena.rdf.arp.ARPErrorNumbers.ERR_ABOUTEACH_NOT_TOPLEVEL
          No longer occurs. Any use of rdf:aboutEach is a syntax error. 
com.hp.hpl.jena.rdf.arp.ARPErrorNumbers.ERR_INTERNAL_ERROR
          No longer used. 
com.hp.hpl.jena.rdf.arp.ARPErrorNumbers.ERR_STRING_NOT_NORMAL_FORM_C
          See 2nd Last Call docs * (E207). 
com.hp.hpl.jena.rdf.arp.ARPErrorNumbers.ERR_UNABLE_TO_RECOVER
          Not used. 
com.hp.hpl.jena.rdf.arp.ARPErrorNumbers.ERR_URI_NOT_NORMAL_FORM_C
          WG decision on williams-01. 
com.hp.hpl.jena.util.ModelLoader.langBDB
          Use FileUtils.langBDB 
com.hp.hpl.jena.util.ModelLoader.langN3
          Use FileUtils.langN3 
com.hp.hpl.jena.util.ModelLoader.langNTriple
          Use FileUtils.langNTriple 
com.hp.hpl.jena.util.ModelLoader.langSQL
          Use FileUtils.langSQL 
com.hp.hpl.jena.util.ModelLoader.langXML
          Use FileUtils.FileUtils.langXML 
com.hp.hpl.jena.util.ModelLoader.langXMLAbbrev
          Use FileUtils.langXMLAbbrev 
com.hp.hpl.jena.rdf.arp.ARPErrorNumbers.WARN_BAD_XML
            
com.hp.hpl.jena.rdf.arp.ARPErrorNumbers.WARN_LEGAL_REUSE_OF_ID
          Last supported in Jena 2.1 - too expensive. 
com.hp.hpl.jena.rdf.arp.ARPErrorNumbers.WARN_MINOR_INTERNAL_ERROR
          No longer used. 
com.hp.hpl.jena.rdf.arp.ARPErrorNumbers.WARN_QNAME_AS_ID
          Superceded by the more general ARPErrorNumbers.WARN_BAD_NAME 
com.hp.hpl.jena.rdf.arp.ARPErrorNumbers.WARN_URI_COMPOSING_CHAR
          WG decision on williams-01. 
com.hp.hpl.jena.rdf.arp.ARPErrorNumbers.WARN_XMLBASE_MISSING
          ARPErrorNumbers.IGN_NO_BASE_URI_SPECIFIED 
 

Deprecated Methods
com.hp.hpl.jena.rdf.model.ModelCon.add(Resource, Property, String, String, boolean)
          since Jena2. It is no longer legal to have a language tag on a well-formed XMLLiteral. Use the 4-argument form of add instead. add a statement to this model. 
com.hp.hpl.jena.rdql.Environment.add(String, RDFNode)
          This class has been renamed as ResultBindingImpl 
com.hp.hpl.jena.rdql.Environment.add(String, Value)
          This class has been renamed as ResultBindingImpl 
com.hp.hpl.jena.ontology.OntDocumentManager.addLanguageEntry(String, String)
          Language determination via the ODM will be removed from Jena 2.4 onwards 
com.hp.hpl.jena.ontology.OntDocumentManager.addPrefixMapping(String, String)
          Prefix management via the ODM is very likely to be removed from Jena 2.4 onwards 
com.hp.hpl.jena.ontology.Individual.addSameIndividualAs(Resource)
          WebOnt have removed owl:sameIndividualAs. Use OntResource.addSameAs(com.hp.hpl.jena.rdf.model.Resource) instead. 
com.hp.hpl.jena.rdql.Environment.check()
          This class has been renamed as ResultBindingImpl 
com.hp.hpl.jena.db.ModelRDB.clear()
          Since Jena 2.0 this call is not recommended (it's name is misleading) - to clear an entire database use DBConnection.cleanDB, to remove just this Model use Model.remove(). 
com.hp.hpl.jena.rdf.arp.ARPOptions.copy()
          Not intended for public use, will be removed from API 
com.hp.hpl.jena.db.ModelRDB.create(IDBConnection, String)
          Since Jena 2.0 this call is no longer needed - it is preferable to specify the database type when constructing the DBConnection. Then use the call ModelRDB.createModel(IDBConnection) 
com.hp.hpl.jena.db.ModelRDB.create(IDBConnection, String, String)
          Since Jena 2.0 this call is no longer needed - it is preferable to specify the database type when constructing the DBConnection and to modify the layout by using the properties in the DBConnection. Then use the call ModelRDB.createModel(IDBConnection) 
com.hp.hpl.jena.rdf.model.Model.createLiteral(String, String, boolean)
          since Jena2. It is no longer legal to have a language tag on a well-formed XMLLiteral. Use the 2-argument form of createLiteral instead. Create a literal from a String value with a specified language. An existing literal of the right value may be returned, or a fresh one created. 
com.hp.hpl.jena.rdf.model.ModelSource.createModel()
          use createDefaultModel or createFreshModel as appropriate. 
com.hp.hpl.jena.db.ModelRDB.deleteModel(IDBConnection, String)
          Since Jena 2.0, to remove a model use the ModelRDB.remove() 
com.hp.hpl.jena.rdf.arp.JenaReader.errorCode(String)
          Use ParseException.errorCode(String) 
com.hp.hpl.jena.rdf.arp.JenaReader.errorCodeName(int)
          Use ParseException.errorCodeName(int) 
com.hp.hpl.jena.rdql.Environment.get(String)
          This class has been renamed as ResultBindingImpl 
com.hp.hpl.jena.rdql.QueryResultsStream.getAll()
          QueryResultsStream do not have all the results at once - QueryResultsMem 
com.hp.hpl.jena.rdql.QueryResultsMem.getAll()
          Old QueryResults operation 
com.hp.hpl.jena.rdql.QueryResults.getAll()
          Use QueryResultsMem to get all the results of a query. 
com.hp.hpl.jena.ontology.OntDocumentManager.getDeclaredPrefixMapping()
          Prefix management via the ODM is very likely to be removed from Jena 2.4 onwards 
com.hp.hpl.jena.db.IDBConnection.getDriver(String, String)
          As of Jena 2.0 this call should not be used. Instead specify the database type when constructing a DBConnection and then pass that connection to the GraphRDB. There is no longer any need for applications to interact with the IRDBDriver. To customize the database configuration/layout use the formatDB(propertyModel) call. 
com.hp.hpl.jena.db.DBConnection.getDriver(String, String)
          As of Jena 2.0 this call should not be used. Instead specify the database type when constructing a DBConnection and then pass that connection to the GraphRDB. There is no longer any need for applications to interact with the IRDBDriver. To customize the database configuration/layout use the formatDB(propertyModel) call. 
com.hp.hpl.jena.ontology.OntDocumentManager.getLanguage(String)
          Language determination via the ODM will be removed from Jena 2.4 onwards 
com.hp.hpl.jena.rdf.model.ModelSource.getModel()
          use createDefaultModel or createFreshModel as appropriate. 
com.hp.hpl.jena.ontology.OntModelSpec.getModelMaker()
          use OntModelSpec.getImportModelMaker() or OntModelSpec.getBaseModelMaker() 
com.hp.hpl.jena.ontology.OntModel.getModelMaker()
          use getImportModelMaker instead for consistency with name changes to OntModelSpec to avoid ambiguity with base vs import makers. 
com.hp.hpl.jena.rdf.model.Resource.getNode()
          use asNode(). 
com.hp.hpl.jena.rdf.model.JenaConfig.getOldLiteralCompare()
          this functionality is temporary 
com.hp.hpl.jena.ontology.OntDocumentManager.getPrefixForURI(String)
          Prefix management via the ODM is very likely to be removed from Jena 2.4 onwards 
com.hp.hpl.jena.ontology.Individual.getSameIndividualAs()
          WebOnt have removed owl:sameIndividualAs. Use OntResource.getSameAs() instead. 
com.hp.hpl.jena.ontology.OntDocumentManager.getURIForPrefix(String)
          Prefix management via the ODM is very likely to be removed from Jena 2.4 onwards 
com.hp.hpl.jena.ontology.daml.DAMLModel.getUseEquivalence()
          Not useful in Jena2, since equivalence processing is handled by the inference graph. 
com.hp.hpl.jena.rdf.model.Literal.getWellFormed()
          use isWellFormedXML instead. 
com.hp.hpl.jena.util.ModelLoader.guessLang(String)
          Use FileUtils.guessLang 
com.hp.hpl.jena.util.ModelLoader.guessLang(String, String)
          Use FileUtils.guessLang 
com.hp.hpl.jena.ontology.Individual.isSameIndividualAs(Resource)
          WebOnt have removed owl:sameIndividualAs. Use OntResource.isSameAs(com.hp.hpl.jena.rdf.model.Resource) instead. 
com.hp.hpl.jena.rdql.Environment.iterator()
          This class has been renamed as ResultBindingImpl 
com.hp.hpl.jena.ontology.Individual.listSameIndividualAs()
          WebOnt have removed owl:sameIndividualAs. Use OntResource.listSameAs() instead. 
com.hp.hpl.jena.db.ModelRDB.loadAll()
          Since Jena 2.0, this call is not recommended. Instead use the soon-to-be-released bulk-load functions. 
com.hp.hpl.jena.util.ModelLoader.loadModel(Model, String)
          Use FileManager.get().readModel(model, urlStr) instead 
com.hp.hpl.jena.util.ModelLoader.loadModel(Model, String, String)
          Use FileManager.get().readModel(model, urlStr, lang) instead 
com.hp.hpl.jena.util.ModelLoader.loadModel(String)
          Use FileManager.get().loadModel(urlStr) 
com.hp.hpl.jena.util.ModelLoader.loadModel(String, String)
          Use FileManager.get().loadModel(urlStr, lang) 
com.hp.hpl.jena.reasoner.rulesys.Util.loadResourceFile(String)
          Use loadRuleParserFromResourceFile 
com.hp.hpl.jena.rdf.arp.SAX2RDF.newInstance(String)
          Use SAX2RDF.create(String). 
com.hp.hpl.jena.rdf.arp.SAX2Model.newInstance(String, Model)
          Use SAX2Model.create(String, Model) 
com.hp.hpl.jena.rdf.arp.SAX2Model.newInstance(String, Model, String)
          Use SAX2Model.create(String, Model, String) 
com.hp.hpl.jena.rdf.arp.SAX2RDF.newInstance(String, String)
          Use SAX2RDF.create(String,String). 
com.hp.hpl.jena.util.FileManager.remap(String)
          Use mapURI 
com.hp.hpl.jena.rdf.model.RDFList.removeAll()
          Replaced by RDFList.removeList() 
com.hp.hpl.jena.ontology.Individual.removeSameIndividualAs(Resource)
          WebOnt have removed owl:sameIndividualAs. Use OntResource.removeSameAs(com.hp.hpl.jena.rdf.model.Resource) instead. 
com.hp.hpl.jena.reasoner.rulesys.Rule.rulesStringFromReader(BufferedReader)
          Use rulesParserFromReader 
com.hp.hpl.jena.rdf.arp.ARP.setDefaultErrorMode()
          Use ARP.getOptions().setDefaultErrorMode() 
com.hp.hpl.jena.rdf.arp.ARP.setEmbedding(boolean)
          Use ARP.getOptions().setEmbedding(embed) 
com.hp.hpl.jena.rdf.arp.ARP.setErrorHandler(ErrorHandler)
          Use ARP.getHandlers().setErrorHandler(eh) 
com.hp.hpl.jena.rdf.arp.ARP.setErrorMode(int, int)
          Use ARP.getOptions().setErrorMode(errno,mode) 
com.hp.hpl.jena.rdf.arp.ARP.setExtendedHandler(ExtendedHandler)
          Use ARP.getHandlers().setExtendedHandler(eh) 
com.hp.hpl.jena.rdf.arp.ARP.setLaxErrorMode()
          Use ARP.getOptions().setLaxErrorMode() 
com.hp.hpl.jena.util.FileManager.setMapper(LocationMapper)
          USe setLocationMapper 
com.hp.hpl.jena.ontology.OntModelSpec.setModelMaker(ModelMaker)
          use OntModelSpec.setImportModelMaker(com.hp.hpl.jena.rdf.model.ModelMaker) or OntModelSpec.setBaseModelMaker(com.hp.hpl.jena.rdf.model.ModelMaker) 
com.hp.hpl.jena.rdf.arp.ARP.setNamespaceHandler(NamespaceHandler)
          Use ARP.getHandlers().setNamespaceHandler(nh) 
com.hp.hpl.jena.rdf.model.JenaConfig.setOldLiteralCompare(boolean)
          this functionality is temporary 
com.hp.hpl.jena.ontology.daml.DAMLCommon.setRDFType(Resource, boolean)
          Use OntResource.addRDFType(com.hp.hpl.jena.rdf.model.Resource) or OntResource.setRDFType(com.hp.hpl.jena.rdf.model.Resource). 
com.hp.hpl.jena.ontology.Individual.setSameIndividualAs(Resource)
          WebOnt have removed owl:sameIndividualAs. Use OntResource.setSameAs(com.hp.hpl.jena.rdf.model.Resource) instead. 
com.hp.hpl.jena.rdf.arp.ARP.setStatementHandler(StatementHandler)
          Use ARP.getHandlers().setStatementHandler(sh) 
com.hp.hpl.jena.rdf.arp.ARP.setStrictErrorMode()
          Use ARP.getOptions().setStrictErrorMode() 
com.hp.hpl.jena.rdf.arp.ARP.setStrictErrorMode(int)
          Use ARP.getOptions().setStrictErrorMode(nonErrorMode) 
com.hp.hpl.jena.ontology.OntDocumentManager.setUseDeclaredPrefixes(boolean)
          Prefix management via the ODM is very likely to be removed from Jena 2.4 onwards 
com.hp.hpl.jena.ontology.daml.DAMLModel.setUseEquivalence(boolean)
          Not useful in Jena2, since equivalence processing is handled by the inference graph. 
com.hp.hpl.jena.rdql.Environment.size()
          This class has been renamed as ResultBindingImpl 
com.hp.hpl.jena.rdf.arp.JenaReader.translate(ALiteral)
          Should never have been public. 
com.hp.hpl.jena.rdf.arp.JenaReader.translatePred(AResource)
          Should never have been public. 
com.hp.hpl.jena.ontology.OntDocumentManager.useDeclaredPrefixes()
          Prefix management via the ODM is very likely to be removed from Jena 2.4 onwards 
com.hp.hpl.jena.rdf.arp.JenaReader.useMe(Model)
          This is the default behaviour 
com.hp.hpl.jena.shared.PrefixMapping.usePrefix(String)
          - use shortForm 
 

Deprecated Constructors
com.hp.hpl.jena.rdf.arp.ARPHandlers()
          Use ARPConfig.getHandlers() 
com.hp.hpl.jena.rdf.arp.ARPOptions()
          Use ARPConfig.getOptions() 
com.hp.hpl.jena.db.DBConnection(Connection)
          As of Jena 2.0, it is recommended to use one of the DBConnection constructors which takes a database type as an argument. (The DBConnection can operate more efficiently if it knows the database type). 
com.hp.hpl.jena.db.DBConnection(String, String, String)
          As of Jena 2.0, it is recommended to use one of the DBConnection constructors which takes a database type as an argument. (The DBConnection can operate more efficiently if it knows the database type). 
com.hp.hpl.jena.rdf.arp.DOM2Model(String, Model)
          Use DOM2Model.createD2M(String, Model) 
com.hp.hpl.jena.rdf.arp.DOM2Model(String, Model, String)
          Use DOM2Model.createD2M(String, Model, String) 
com.hp.hpl.jena.rdql.Environment()
          Renamed as ResultBindingImpl 
com.hp.hpl.jena.db.GraphRDB(IDBConnection, String, Graph, boolean)
          Please use the alternate constructor and choose the desired reification behaviour. 
com.hp.hpl.jena.db.ModelRDB(IDBConnection)
          Since Jena 2.0, this call is not recommended - in the short-term use ModelRDB.open or ModelRDB.createModel; in the longer-term use factory methods to construct persistent models. 
com.hp.hpl.jena.db.ModelRDB(IDBConnection, String)
          Since Jena 2.0, this call is not recommended - in the short-term use ModelRDB.open or ModelRDB.createModel; in the longer-term use factory methods to construct persistent models. 
 



Copyright © 2000, 2001, 2002, 2003, 2004, 2005 Hewlett-Packard Development Company, LP