| 18 | /** |
| 19 | * Method from Gnowsis - StructuredAdapter |
| 20 | * |
| 21 | * The data inside the adapter may have a "root" url from which it is possible |
| 22 | * to reach other urls through the links graph. This is the same function as |
| 23 | * in GenericAdapter, but this time you must return a set of root urls |
| 24 | * that point to containers. |
| 25 | * @return an array of strings |
| 26 | */ |
| 27 | public String[] getRootUrls(); |
| 28 | |
| 29 | |
| 30 | /** |
| 31 | * Method from Gnowsis - StructuredAdapter |
| 32 | * |
| 33 | * list the sub-containers of the passed container. |
| 34 | * This returns a RDF container that represents the containerUri but |
| 35 | * contains only other containers. |
| 36 | * @param containerUri the uri of the container |
| 37 | * @return null if the container cannot be found, otherwise an Container with Containers |
| 38 | */ |
| 39 | public Container listSubContainers(String containerUri); |
| 40 | |
| 41 | /** |
| 42 | * Method from Gnowsis - StructuredAdapter |
| 43 | * |
| 44 | * list the resources in the passed container. |
| 45 | * This returns a RDF container that represents the containerUri but |
| 46 | * contains only the resources/documents/files/emails in the container. |
| 47 | * You have to describe each container item (which has to have a unique uri in the domain of the adapter) |
| 48 | * resource using exactly these properties: |
| 49 | * <ul> |
| 50 | * <li>rdf:type</li> |
| 51 | * <li>rdfs:label</li> |
| 52 | * <li>dcterms:modified - Date on which the resource was changed. SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");</li> |
| 53 | * <li>FUTURE!!! optional: x <rdf:type> <rdfs:Container>. when this statement is given, the resource can contain sub-resources. this happens in email stores or with zip files. |
| 54 | * </ul> |
| 55 | * Each resource must have a URI that can be used in a getCBD call. |
| 56 | * |
| 57 | * FUTURE: If the sub-resource indication is given (resource is of type container) |
| 58 | * then the sub-resources are assumed to have the same dcterms:modified as the container and are received through |
| 59 | * a call to listResources on the uri of the list item. |
| 60 | * @param containerUri the uri of the container |
| 61 | * @return null if the container cannot be found, otherwise an Container with Resources |
| 62 | */ |
| 63 | public Container listResources(String containerUri); |
| 64 | |
| 65 | |
| 66 | |
| 67 | |