@@ -29,34 +29,56 @@ section.
29
29
30
30
# CLI
31
31
```
32
- Usage: dmaog [-hV] [-dr=<drivers>] -m=<mappingRules> [-ml=<mappingLanguage>]
33
- -o=<outputPath> -p=<packageName> [-ps=<password>] [-u=<username>]
32
+ Usage: dmaog [-hV] [--static] [-dr=<drivers>] [-m=<mappingRules>]
33
+ [-ml=<mappingLanguage>] -o=<outputPath> -p=<packageName>
34
+ [-ps=<password>] [-se=<sparqlEndpoint>] [-u=<username>]
34
35
Generate data access objects and services from your mapping rules.
35
- -dr, --drivers=<drivers>
36
- Drivers string in case it is not included in ShExML
37
- -h, --help Show this help message and exit.
38
- -m, --mapping=<mappingRules>
39
- Path to the file with the mappings
40
- -ml, --mappingLanguage=<mappingLanguage>
41
- Mapping language to use: ShExML or RML
42
- -o, --output=<outputPath>
43
- Path where to generate the output files
44
- -p, --package=<packageName>
45
- Package information for the generated files
46
- -ps, --password=<password>
47
- Password in case of database connection
48
- -u, --username=<username>
49
- Username in case of database connection
50
- -V, --version Print version information and exit.
36
+ -dr, --drivers=<drivers>
37
+ Drivers string in case it is not included in ShExML
38
+ -h, --help Show this help message and exit.
39
+ -m, --mapping=<mappingRules>
40
+ Path to the file with the mappings
41
+ -ml, --mappingLanguage=<mappingLanguage>
42
+ Mapping language to use: ShExML or RML
43
+ -o, --output=<outputPath>
44
+ Path where to generate the output files
45
+ -p, --package=<packageName>
46
+ Package information for the generated files
47
+ -ps, --password=<password>
48
+ Password in case of database connection
49
+ -se, --sparqlEndpoint=<sparqlEndpoint>
50
+ URL pointing to the SPARQL endpoint
51
+ --static Exploit mapping rules without executing them
52
+ -u, --username=<username>
53
+ Username in case of database connection
54
+ -V, --version Print version information and exit.
51
55
```
52
56
57
+ # Supported features
58
+ * Generation of data against files and SPARQL endpoints
59
+ * Using already existing data files and SPARQL endpoints without mapping rules
60
+ * Update actions on files and SPARQL endpoints (without authentication)
61
+ * Static analysis of ShExML rules (not need to run the mapping rules to generate classes)
62
+ * Multilingual strings
63
+ * Pagination of the results
64
+
53
65
# Supported methods in services
54
66
* getAll(): List[ Type] -> Returns all the results for the type
67
+ * getAll(Long limit, Long offset): List[ Type] -> Returns all the results for the type within the given page
68
+ * getAll(String rdfFormat): String -> Returns all the results in the requested format
69
+ * count(): Long -> Returns the total number of objects of this type
55
70
* getById(String id): Type -> Return the object with the given id for the type. Take into account that the id is refering
56
71
to the local part of the subject URI when talking about RDF data.
72
+ * getById(String id, String rdfFormat): String -> Return the object with the given id in the requested format.
57
73
* getByField(String fieldName, String value): List<Type > -> Return all the results whose indicated field value matches with
58
74
the given value. Take into account that the fieldName refers to the localPart of the predicate URI when talking about RDF data.
75
+ * getByField(String fieldName, String value, String rdfFormat): String -> Return all the results whose indicated field
76
+ value matches with the given value in the requested format.
77
+ * commit(Type instance) -> Deletes the instance (if it exists) in the data store and inserts the new data. It can act
78
+ as create or update method.
79
+ * delete(Type instance) -> Deletes the instance in the data store.
59
80
60
81
# Future work
61
- * Support for Triple Stores and for data modification actions
62
- * Possibility to use Shapes for code generation
82
+ * Support for authentication on update actions against SPARQL endpoints
83
+ * Possibility to use Shapes for code generation
84
+ * Static analysis of RML rules
0 commit comments