| 26 | |
| 27 | !A quick guide to creating your own aperture datasource (in eclipse): |
| 28 | |
| 29 | Here I will step through all the steps required to create a new aperture datasource and how to package it so that it can be used with gnowsis. I will create a datasource that wraps an RSS/Atom feed, and I will base it on [https://rome.dev.java.net/ rome]. |
| 30 | |
| 31 | * Create a new Eclipse project, copy the main aperture jar (mine is aperture-2006.1-alpha-2.jar) and the 3 sesame jars into the project and add them to the build-path. |
| 32 | * Create a new class that implements CrawlerFactory, tell Eclipse to add all unimplemented methods. |
| 33 | * Create a new class that implements DataSourceFactory, add unimplemented methods. |
| 34 | * Create a new class that extends DataSourceBase - create a public static URI called TYPE, and return this in the getType(). |
| 35 | {{{ |
| 36 | public static URI TYPE=new URIImpl("http://example.org/RSSDataSource"); |
| 37 | }}} |
| 38 | * Create a new |