Java Doc for RDFParserBase.java in  » RSS-RDF » sesame » org » openrdf » rio » helpers » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » RSS RDF » sesame » org.openrdf.rio.helpers 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openrdf.rio.helpers.RDFParserBase

All known Subclasses:   org.openrdf.rio.rdfxml.RDFXMLParser,  org.openrdf.rio.trix.TriXParser,  org.openrdf.rio.ntriples.NTriplesParser,  org.openrdf.rio.turtle.TurtleParser,
RDFParserBase
abstract public class RDFParserBase implements RDFParser(Code)
Base class for RDFParser s offering common functionality for RDF parsers.
author:
   Arjohn Kampman


Field Summary
protected  RDFHandlerrdfHandler
     The RDFHandler that will handle the parsed RDF.

Constructor Summary
public  RDFParserBase()
     Creates a new RDFParserBase that will use a ValueFactoryImpl to create RDF model objects.
public  RDFParserBase(ValueFactory valueFactory)
     Creates a new TurtleParser that will use the supplied ValueFactory to create RDF model objects.

Method Summary
protected  voidclear()
     Clears any information that has been collected while parsing.
protected  voidclearBNodeIDMap()
     Clears the map that keeps track of blank nodes that have been parsed.
protected  BNodecreateBNode()
     Creates a new BNode object.
protected  BNodecreateBNode(String nodeID)
     Creates a BNode object for the specified identifier.
protected  LiteralcreateLiteral(String label, String lang, URI datatype)
     Creates a Literal object with the supplied parameters.
protected  StatementcreateStatement(Resource subj, URI pred, Value obj)
     Creates a new Statement object with the supplied components.
protected  StatementcreateStatement(Resource subj, URI pred, Value obj, Resource context)
     Creates a new Statement object with the supplied components.
protected  URIcreateURI(String uri)
     Creates a URI object for the specified URI-string.
public  DatatypeHandlingdatatypeHandling()
    
protected  StringgetNamespace(String prefix)
     Gets the namespace that is associated with the specified prefix, if any.
public  ParseErrorListenergetParseErrorListener()
    
public  ParseLocationListenergetParseLocationListener()
    
public  RDFHandlergetRDFHandler()
    
public  booleanpreserveBNodeIDs()
    
protected  voidreportError(String msg)
     Reports an error to the registered ParseErrorListener, if any.
protected  voidreportError(String msg, int lineNo, int columnNo)
     Reports an error with associated line- and column number to the registered ParseErrorListener, if any.
protected  voidreportFatalError(String msg)
     Reports a fatal error to the registered ParseErrorListener, if any, and throws a ParseException afterwards.
protected  voidreportFatalError(String msg, int lineNo, int columnNo)
     Reports a fatal error with associated line- and column number to the registered ParseErrorListener, if any, and throws a ParseException afterwards.
protected  voidreportFatalError(Exception e)
     Reports a fatal error to the registered ParseErrorListener, if any, and throws a ParseException afterwards.
protected  voidreportFatalError(Exception e, int lineNo, int columnNo)
     Reports a fatal error with associated line- and column number to the registered ParseErrorListener, if any, and throws a ParseException wrapped the supplied exception afterwards.
protected  voidreportLocation(int lineNo, int columnNo)
     Reports the specified line- and column number to the registered ParseLocationListener , if any.
protected  voidreportWarning(String msg)
     Reports a warning to the registered ParseErrorListener, if any.
protected  voidreportWarning(String msg, int lineNo, int columnNo)
     Reports a warning with associated line- and column number to the registered ParseErrorListener, if any.
protected  URIresolveURI(String uriSpec)
     Resolves a URI-string against the base URI and creates a URI object for it.
protected  voidsetBaseURI(String uriSpec)
     Parses and normalizes the supplied URI-string and sets it as the base URI for resolving relative URIs.
protected  voidsetBaseURI(ParsedURI baseURI)
     Sets the base URI for resolving relative URIs.
public  voidsetDatatypeHandling(DatatypeHandling datatypeHandling)
    
protected  voidsetNamespace(String prefix, String namespace)
     Associates the specified prefix to the specified namespace.
public  voidsetParseErrorListener(ParseErrorListener el)
    
public  voidsetParseLocationListener(ParseLocationListener el)
    
public  voidsetPreserveBNodeIDs(boolean preserveBNodeIDs)
    
public  voidsetRDFHandler(RDFHandler handler)
    
public  voidsetStopAtFirstError(boolean stopAtFirstError)
    
public  voidsetValueFactory(ValueFactory valueFactory)
    
public  voidsetVerifyData(boolean verifyData)
    
public  booleanstopAtFirstError()
    
public  booleanverifyData()
    

Field Detail
rdfHandler
protected RDFHandler rdfHandler(Code)
The RDFHandler that will handle the parsed RDF.




Constructor Detail
RDFParserBase
public RDFParserBase()(Code)
Creates a new RDFParserBase that will use a ValueFactoryImpl to create RDF model objects.



RDFParserBase
public RDFParserBase(ValueFactory valueFactory)(Code)
Creates a new TurtleParser that will use the supplied ValueFactory to create RDF model objects.
Parameters:
  valueFactory - A ValueFactory.




Method Detail
clear
protected void clear()(Code)
Clears any information that has been collected while parsing. This method must be called by subclasses when finishing the parse process.



clearBNodeIDMap
protected void clearBNodeIDMap()(Code)
Clears the map that keeps track of blank nodes that have been parsed. Normally, this map is clear when the document has been parsed completely, but subclasses can clear the map at other moments too, for example when a bnode scope ends.



createBNode
protected BNode createBNode() throws RDFParseException(Code)
Creates a new BNode object.



createBNode
protected BNode createBNode(String nodeID) throws RDFParseException(Code)
Creates a BNode object for the specified identifier.



createLiteral
protected Literal createLiteral(String label, String lang, URI datatype) throws RDFParseException(Code)
Creates a Literal object with the supplied parameters.



createStatement
protected Statement createStatement(Resource subj, URI pred, Value obj) throws RDFParseException(Code)
Creates a new Statement object with the supplied components.



createStatement
protected Statement createStatement(Resource subj, URI pred, Value obj, Resource context) throws RDFParseException(Code)
Creates a new Statement object with the supplied components.



createURI
protected URI createURI(String uri) throws RDFParseException(Code)
Creates a URI object for the specified URI-string.



datatypeHandling
public DatatypeHandling datatypeHandling()(Code)



getNamespace
protected String getNamespace(String prefix)(Code)
Gets the namespace that is associated with the specified prefix, if any.



getParseErrorListener
public ParseErrorListener getParseErrorListener()(Code)



getParseLocationListener
public ParseLocationListener getParseLocationListener()(Code)



getRDFHandler
public RDFHandler getRDFHandler()(Code)



preserveBNodeIDs
public boolean preserveBNodeIDs()(Code)



reportError
protected void reportError(String msg) throws RDFParseException(Code)
Reports an error to the registered ParseErrorListener, if any. This method simply calls RDFParserBase.reportError(String,int,int) supplying -1 for the line- and column number. This method throws a ParseException when 'stop-at-first-error' has been set to true.
See Also:   RDFParserBase.setStopAtFirstError



reportError
protected void reportError(String msg, int lineNo, int columnNo) throws RDFParseException(Code)
Reports an error with associated line- and column number to the registered ParseErrorListener, if any. This method throws a ParseException when 'stop-at-first-error' has been set to true.
See Also:   RDFParserBase.setStopAtFirstError



reportFatalError
protected void reportFatalError(String msg) throws RDFParseException(Code)
Reports a fatal error to the registered ParseErrorListener, if any, and throws a ParseException afterwards. This method simply calls RDFParserBase.reportFatalError(String,int,int) supplying -1 for the line- and column number.



reportFatalError
protected void reportFatalError(String msg, int lineNo, int columnNo) throws RDFParseException(Code)
Reports a fatal error with associated line- and column number to the registered ParseErrorListener, if any, and throws a ParseException afterwards.



reportFatalError
protected void reportFatalError(Exception e) throws RDFParseException(Code)
Reports a fatal error to the registered ParseErrorListener, if any, and throws a ParseException afterwards. An exception is made for the case where the supplied exception is a RDFParseException ; in that case the supplied exception is not wrapped in another ParseException and the error message is not reported to the ParseErrorListener, assuming that it has already been reported when the original ParseException was thrown.

This method simply calls RDFParserBase.reportFatalError(Exception,int,int) supplying -1 for the line- and column number.




reportFatalError
protected void reportFatalError(Exception e, int lineNo, int columnNo) throws RDFParseException(Code)
Reports a fatal error with associated line- and column number to the registered ParseErrorListener, if any, and throws a ParseException wrapped the supplied exception afterwards. An exception is made for the case where the supplied exception is a RDFParseException ; in that case the supplied exception is not wrapped in another ParseException and the error message is not reported to the ParseErrorListener, assuming that it has already been reported when the original ParseException was thrown.



reportLocation
protected void reportLocation(int lineNo, int columnNo)(Code)
Reports the specified line- and column number to the registered ParseLocationListener , if any.



reportWarning
protected void reportWarning(String msg)(Code)
Reports a warning to the registered ParseErrorListener, if any. This method simply calls RDFParserBase.reportWarning(String,int,int) supplying -1 for the line- and column number.



reportWarning
protected void reportWarning(String msg, int lineNo, int columnNo)(Code)
Reports a warning with associated line- and column number to the registered ParseErrorListener, if any.



resolveURI
protected URI resolveURI(String uriSpec) throws RDFParseException(Code)
Resolves a URI-string against the base URI and creates a URI object for it.



setBaseURI
protected void setBaseURI(String uriSpec)(Code)
Parses and normalizes the supplied URI-string and sets it as the base URI for resolving relative URIs.



setBaseURI
protected void setBaseURI(ParsedURI baseURI)(Code)
Sets the base URI for resolving relative URIs.



setDatatypeHandling
public void setDatatypeHandling(DatatypeHandling datatypeHandling)(Code)



setNamespace
protected void setNamespace(String prefix, String namespace)(Code)
Associates the specified prefix to the specified namespace.



setParseErrorListener
public void setParseErrorListener(ParseErrorListener el)(Code)



setParseLocationListener
public void setParseLocationListener(ParseLocationListener el)(Code)



setPreserveBNodeIDs
public void setPreserveBNodeIDs(boolean preserveBNodeIDs)(Code)



setRDFHandler
public void setRDFHandler(RDFHandler handler)(Code)



setStopAtFirstError
public void setStopAtFirstError(boolean stopAtFirstError)(Code)



setValueFactory
public void setValueFactory(ValueFactory valueFactory)(Code)



setVerifyData
public void setVerifyData(boolean verifyData)(Code)



stopAtFirstError
public boolean stopAtFirstError()(Code)



verifyData
public boolean verifyData()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.