Java Doc for NTriplesUtil.java in  » RSS-RDF » sesame » org » openrdf » rio » ntriples » 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.ntriples 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openrdf.rio.ntriples.NTriplesUtil

NTriplesUtil
public class NTriplesUtil (Code)
Utility methods for N-Triples encoding/decoding.




Method Summary
public static  StringescapeString(String label)
     Escapes a Unicode string to an all-ASCII character sequence.
public static  booleanisLetter(int c)
     Checks whether the supplied character is a letter according to the N-Triples specification.
public static  booleanisLetterOrNumber(int c)
     Checks whether the supplied character is a letter or number according to the N-Triples specification.
public static  booleanisNumber(int c)
     Checks whether the supplied character is a number according to the N-Triples specification.
public static  BNodeparseBNode(String nTriplesBNode, ValueFactory valueFactory)
     Parses an N-Triples bNode, creates an object for it using the supplied ValueFactory and returns this object.
Parameters:
  nTriplesBNode - The N-Triples bNode to parse.
Parameters:
  valueFactory - The ValueFactory to use for creating theobject.
public static  LiteralparseLiteral(String nTriplesLiteral, ValueFactory valueFactory)
     Parses an N-Triples literal, creates an object for it using the supplied ValueFactory and returns this object.
Parameters:
  nTriplesLiteral - The N-Triples literal to parse.
Parameters:
  valueFactory - The ValueFactory to use for creating theobject.
public static  ResourceparseResource(String nTriplesResource, ValueFactory valueFactory)
     Parses an N-Triples resource, creates an object for it using the supplied ValueFactory and returns this object.
Parameters:
  nTriplesResource - The N-Triples resource to parse.
Parameters:
  valueFactory - The ValueFactory to use for creating theobject.
public static  URIparseURI(String nTriplesURI, ValueFactory valueFactory)
     Parses an N-Triples URI, creates an object for it using the supplied ValueFactory and returns this object.
Parameters:
  nTriplesURI - The N-Triples URI to parse.
Parameters:
  valueFactory - The ValueFactory to use for creating theobject.
public static  ValueparseValue(String nTriplesValue, ValueFactory valueFactory)
     Parses an N-Triples value, creates an object for it using the supplied ValueFactory and returns this object.
Parameters:
  nTriplesValue - The N-Triples value to parse.
Parameters:
  valueFactory - The ValueFactory to use for creating theobject.
public static  StringtoHexString(int decimal, int stringLength)
     Converts a decimal value to a hexadecimal string represention of the specified length.
public static  StringtoNTriplesString(Value value)
     Creates an N-Triples string for the supplied value.
public static  StringtoNTriplesString(Resource resource)
     Creates an N-Triples string for the supplied resource.
public static  StringtoNTriplesString(URI uri)
     Creates an N-Triples string for the supplied URI.
public static  StringtoNTriplesString(BNode bNode)
     Creates an N-Triples string for the supplied bNode.
public static  StringtoNTriplesString(Literal lit)
     Creates an N-Triples string for the supplied literal.
public static  StringunescapeString(String s)
     Unescapes an escaped Unicode string.



Method Detail
escapeString
public static String escapeString(String label)(Code)
Escapes a Unicode string to an all-ASCII character sequence. Any special characters are escaped using backslashes (" becomes \", etc.), and non-ascii/non-printable characters are escaped using Unicode escapes (\uxxxx and \Uxxxxxxxx).



isLetter
public static boolean isLetter(int c)(Code)
Checks whether the supplied character is a letter according to the N-Triples specification. N-Triples letters are A - Z and a - z.



isLetterOrNumber
public static boolean isLetterOrNumber(int c)(Code)
Checks whether the supplied character is a letter or number according to the N-Triples specification.
See Also:   NTriplesUtil.isLetter
See Also:   NTriplesUtil.isNumber



isNumber
public static boolean isNumber(int c)(Code)
Checks whether the supplied character is a number according to the N-Triples specification. N-Triples numbers are 0 - 9.



parseBNode
public static BNode parseBNode(String nTriplesBNode, ValueFactory valueFactory) throws IllegalArgumentException(Code)
Parses an N-Triples bNode, creates an object for it using the supplied ValueFactory and returns this object.
Parameters:
  nTriplesBNode - The N-Triples bNode to parse.
Parameters:
  valueFactory - The ValueFactory to use for creating theobject. An object representing the parsed bNode.
throws:
  IllegalArgumentException - If the supplied bNode could not beparsed correctly.



parseLiteral
public static Literal parseLiteral(String nTriplesLiteral, ValueFactory valueFactory) throws IllegalArgumentException(Code)
Parses an N-Triples literal, creates an object for it using the supplied ValueFactory and returns this object.
Parameters:
  nTriplesLiteral - The N-Triples literal to parse.
Parameters:
  valueFactory - The ValueFactory to use for creating theobject. An object representing the parsed literal.
throws:
  IllegalArgumentException - If the supplied literal could not beparsed correctly.



parseResource
public static Resource parseResource(String nTriplesResource, ValueFactory valueFactory) throws IllegalArgumentException(Code)
Parses an N-Triples resource, creates an object for it using the supplied ValueFactory and returns this object.
Parameters:
  nTriplesResource - The N-Triples resource to parse.
Parameters:
  valueFactory - The ValueFactory to use for creating theobject. An object representing the parsed resource.
throws:
  IllegalArgumentException - If the supplied resource could not beparsed correctly.



parseURI
public static URI parseURI(String nTriplesURI, ValueFactory valueFactory) throws IllegalArgumentException(Code)
Parses an N-Triples URI, creates an object for it using the supplied ValueFactory and returns this object.
Parameters:
  nTriplesURI - The N-Triples URI to parse.
Parameters:
  valueFactory - The ValueFactory to use for creating theobject. An object representing the parsed URI.
throws:
  IllegalArgumentException - If the supplied URI could not beparsed correctly.



parseValue
public static Value parseValue(String nTriplesValue, ValueFactory valueFactory) throws IllegalArgumentException(Code)
Parses an N-Triples value, creates an object for it using the supplied ValueFactory and returns this object.
Parameters:
  nTriplesValue - The N-Triples value to parse.
Parameters:
  valueFactory - The ValueFactory to use for creating theobject. An object representing the parsed value.
throws:
  IllegalArgumentException - If the supplied value could not beparsed correctly.



toHexString
public static String toHexString(int decimal, int stringLength)(Code)
Converts a decimal value to a hexadecimal string represention of the specified length.
Parameters:
  decimal - A decimal value.
Parameters:
  stringLength - The length of the resulting string.



toNTriplesString
public static String toNTriplesString(Value value)(Code)
Creates an N-Triples string for the supplied value.



toNTriplesString
public static String toNTriplesString(Resource resource)(Code)
Creates an N-Triples string for the supplied resource.



toNTriplesString
public static String toNTriplesString(URI uri)(Code)
Creates an N-Triples string for the supplied URI.



toNTriplesString
public static String toNTriplesString(BNode bNode)(Code)
Creates an N-Triples string for the supplied bNode.



toNTriplesString
public static String toNTriplesString(Literal lit)(Code)
Creates an N-Triples string for the supplied literal.



unescapeString
public static String unescapeString(String s)(Code)
Unescapes an escaped Unicode string. Any Unicode sequences (\uxxxx and \Uxxxxxxxx) are restored to the value indicated by the hexadecimal argument and any backslash-escapes (\", \\, etc.) are decoded to their original form.
Parameters:
  s - An escaped Unicode string. The unescaped string.
throws:
  IllegalArgumentException - If the supplied string is not acorrectly escaped N-Triples string.



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.