Java Doc for JenaReader.java in  » RSS-RDF » Jena-2.5.5 » com » hp » hpl » jena » rdf » arp » 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 » Jena 2.5.5 » com.hp.hpl.jena.rdf.arp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.hp.hpl.jena.rdf.arp.JenaReader

JenaReader
public class JenaReader implements RDFReader,ARPErrorNumbers(Code)
Interface between Jena and ARP.
author:
   jjc


Field Summary
final static  StringarpPropertiesURL
    
final static  intarpPropertiesURLLength
    

Constructor Summary
public  JenaReader()
    

Method Summary
static  Tripleconvert(AResource s, AResource p, AResource o)
    
static  Tripleconvert(AResource s, AResource p, ALiteral o)
    
public  ARPOptionsgetOptions()
    
public  voidread(Model m, String url)
     Reads from url, using url as base, adding triples to model.
public  voidread(Model m, Reader reader, String xmlBase)
     Reads from reader, using base URI xmlbase, adding triples to model.
public  voidread(Graph g, Reader reader, String xmlBase)
     Reads from reader, using base URI xmlbase, adding triples to graph.
public  voidread(Model m, InputStream in, String xmlBase)
     Reads from inputStream, using base URI xmlbase, adding triples to model.
public  voidread(Graph g, InputStream in, String xmlBase)
     Reads from inputStream, using base URI xmlbase, adding triples to graph.
static  ObjectsetArpProperty(ARPOptions options, String str, Object v, RDFErrorHandler eh)
    
public  RDFErrorHandlersetErrorHandler(RDFErrorHandler errHandler)
     Change the error handler.

Note that errors of class ParseException can be promoted using the ParseException.promote method.

public  voidsetOptionsWith(ARPOptions opts)
    
public  ObjectsetProperty(String str, Object value)
     Change a property of the RDF or XML parser.

I do not believe that many of the XML features or properties are in fact useful for ARP users.

public static  voiduseMe(Model m)
     Sets the reader for the languages RDF/XML and RDF/XML-ABBREV to be JenaReader.

Field Detail
arpPropertiesURL
final static String arpPropertiesURL(Code)



arpPropertiesURLLength
final static int arpPropertiesURLLength(Code)




Constructor Detail
JenaReader
public JenaReader()(Code)
Creates new JenaReader




Method Detail
convert
static Triple convert(AResource s, AResource p, AResource o)(Code)



convert
static Triple convert(AResource s, AResource p, ALiteral o)(Code)



getOptions
public ARPOptions getOptions()(Code)



read
public void read(Model m, String url) throws JenaException(Code)
Reads from url, using url as base, adding triples to model. Uses content negotiation to ask for application/rdf+xml, if available.
Parameters:
  m - A model to add triples to.
Parameters:
  url - The URL of the RDF/XML document.



read
public void read(Model m, Reader reader, String xmlBase) throws JenaException(Code)
Reads from reader, using base URI xmlbase, adding triples to model. If xmlbase is "" then relative URIs may be added to model.
Parameters:
  m - A model to add triples to.
Parameters:
  reader - The RDF/XML document.
Parameters:
  xmlBase - The base URI of the document or "".



read
public void read(Graph g, Reader reader, String xmlBase) throws JenaException(Code)
Reads from reader, using base URI xmlbase, adding triples to graph. If xmlbase is "" then relative URIs may be added to graph.
Parameters:
  g - A graph to add triples to.
Parameters:
  reader - The RDF/XML document.
Parameters:
  xmlBase - The base URI of the document or "".



read
public void read(Model m, InputStream in, String xmlBase) throws JenaException(Code)
Reads from inputStream, using base URI xmlbase, adding triples to model. If xmlbase is "" then relative URIs may be added to model.
Parameters:
  m - A model to add triples to.
Parameters:
  in - The RDF/XML document stream.
Parameters:
  xmlBase - The base URI of the document or "".



read
public void read(Graph g, InputStream in, String xmlBase)(Code)
Reads from inputStream, using base URI xmlbase, adding triples to graph. If xmlbase is "" then relative URIs may be added to graph.
Parameters:
  g - A graph to add triples to.
Parameters:
  in - The RDF/XML document stream.
Parameters:
  xmlBase - The base URI of the document or "".



setArpProperty
static Object setArpProperty(ARPOptions options, String str, Object v, RDFErrorHandler eh)(Code)
Supported proprties: error-mode (String) default, lax, strict, strict-ignore, strict-warning, strict-error, strict-fatal embedding (String/Boolean) true, false ERR_* (String/Integer) em_warning, em_fatal, em_ignore, em_error IGN_* ditto WARN_* ditto



setErrorHandler
public RDFErrorHandler setErrorHandler(RDFErrorHandler errHandler)(Code)
Change the error handler.

Note that errors of class ParseException can be promoted using the ParseException.promote method. See ARP documentation for org.xml.sax.ErrorHandler for the details of error promotion.
Parameters:
  errHandler - The new error handler. The old error handler.




setOptionsWith
public void setOptionsWith(ARPOptions opts)(Code)



setProperty
public Object setProperty(String str, Object value) throws JenaException(Code)
Change a property of the RDF or XML parser.

I do not believe that many of the XML features or properties are in fact useful for ARP users. The ARP properties allow fine-grained control over error reporting.

This interface can be used to set and get:

SAX2 features
See Xerces features . Value should be given as a String "true" or "false" or a Boolean.
SAX2 properties
See Xerces properties .
Xerces features
See Xerces features . Value should be given as a String "true" or "false" or a Boolean.
Xerces properties
See Xerces properties .
ARP properties
These are referred to either by their property name, (see below) or by an absolute URL of the form http://jena.hpl.hp.com/arp/properties/<PropertyName>. The value should be a String, an Integer or a Boolean depending on the property.
ARP property names and string values are case insensitive.
ARP Properties
Property Name Description Value class Legal Values
error-mode ARPOptions.setDefaultErrorMode
ARPOptions.setLaxErrorMode
ARPOptions.setStrictErrorMode
ARPOptions.setStrictErrorMode(int)
String default
lax
strict
strict-ignore
strict-warning
strict-error
strict-fatal
embedding ARP.setEmbedding String or Boolean true or false
ERR_<XXX>
WARN_<XXX>
IGN_<XXX>
ARPErrorNumbers
Any of the error condition numbers listed.
ARPOptions.setErrorMode(intint)
String or Integer ARPErrorNumbers.EM_IGNORE EM_IGNORE
ARPErrorNumbers.EM_WARNING EM_WARNING
ARPErrorNumbers.EM_ERROR EM_ERROR
ARPErrorNumbers.EM_FATAL EM_FATAL

Parameters:
  str - The property to set.
Parameters:
  value - The new value; values of class String will be converted intoappropriate classes. Values of class Boolean or Integer willbe used for appropriate properties.
throws:
  JenaException - For bad values. The old value, or null if none, or old value is inaccesible.



useMe
public static void useMe(Model m)(Code)
Sets the reader for the languages RDF/XML and RDF/XML-ABBREV to be JenaReader.
Parameters:
  m - The Model on which to set the reader properties.



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.