|
|
Index
| Recent Threads
| Who's Online
| User List
| Search
| Help
| |
|
Forum closing down This forum will be closing down due to extensive spamming activities. As a first step, registration of new members has been disabled. Existing members will be able to use the forum for now, but please consider using the sesame-general mailing list instead. |
![]() |
openRDF.org Forum » Sesame & Rio: Open Discussion » Thread: How to create a new parser? |
|
Total posts in this thread: 3 |
[Add To My Favorites] [Watch this Thread] [Post new Thread] |
| Author |
|
|
Aug 29, 2009 9:43:24 PM
bblfish Sesame Addict France Joined: Sep 13, 2004 Posts: 102 Status: Offline |
Hi I am tryihng to adapt shellac's rdfa parser to Sesame. Here is what shellac told me:
That seeed doable, so I started working on it. The first problem I came accross is: how do I associate an RDFParser with an RDFFormat so that the calls to add triples from an input stream get sent to the correct parser? |
|||
|
|
Aug 30, 2009 3:10:44 PM
james OpenRDF.org Consultant Canada Joined: Jul 21, 2005 Posts: 650 Status: Offline |
List your parser factory in a file named: META-INF/services/org.openrdf.rio.RDFParserFactory In the getRDFFormat method return a format that was registered with: RDFFormat.register Now your parser can be looked up by RDFFormat, mimetype, or file extension. ---------------------------------------- Sesame Consultant http://leighnet.ca http://jamesrdf.blogspot.com |
||
|
|
Sep 9, 2009 7:03:31 PM
bblfish Sesame Addict France Joined: Sep 13, 2004 Posts: 102 Status: Offline |
I forked shellac's parser and it is now available online. For more info see: http://blogs.sun.com/bblfish/entry/rdfa_parser_for_sesame |
||
|
| [Show Printable Version of Thread] [Post new Thread] |