You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: readme.md
+14-14
Original file line number
Diff line number
Diff line change
@@ -25,22 +25,22 @@ Alternatively, do a manual install:
25
25
1. this is necessary if changes are made to the classes in the sysml-domain, which the sysml-server depends on.
26
26
1. This is also necessary when running for the first time.
27
27
2. run `mvn jetty:run-war` on the project `org.oasis.oslcop.sysml.oslc-server-model`
28
-
3. If the first time you are running the server, populate the database by calling http://localhost:8085/sysml_oslc_server/services/populate
29
-
1. If you already have the data in the triplestore, **make sure to select active version via http://localhost:8085/sysml_oslc_server/services/store/projectCommits** (WARN: the page will take quite a long time to load).
30
-
4. Browse the data starting with the catalog http://localhost:8085/sysml_oslc_server/services/catalog/singleton
28
+
3. If the first time you are running the server, populate the database by calling http://localhost:8085/sysml_oslc_server/oslc/populate
29
+
1. If you already have the data in the triplestore, **make sure to select active version via http://localhost:8085/sysml_oslc_server/oslc/store/projectCommits** (WARN: the page will take quite a long time to load).
30
+
4. Browse the data starting with the catalog http://localhost:8085/sysml_oslc_server/oslc/catalog/singleton
31
31
32
32
## Query
33
33
34
34
Example queries we can execute (if you chose version `11609e2b-a4df-4a64-9e61-a45660c28542`):
@@ -49,9 +49,9 @@ The Swagger Docs for the REST server has base: http://sysml2-dev.intercax.com:90
49
49
50
50
## Developer Info - Manual steps when re-generating model and code
51
51
52
-
The SysML domain classes are generated, based on an Lyo model that is itself transformed from the Sysml EMF model.
52
+
The SysML domain classes are generated, based on a Lyo model that is itself transformed from the Sysml EMF model.
53
53
54
-
There are currently 3 manual steps that need to be handled when regenerting the code.
54
+
There are currently 3 manual steps that need to be handled when re-generating the code.
55
55
56
56
- The first can be automated in the future.
57
57
- The second is due to a limitation in LyoDesigner.
@@ -61,22 +61,22 @@ There are currently 3 manual steps that need to be handled when regenerting the
61
61
62
62
Before generating the java classes, the generated Lyo model is manually modified to:
63
63
64
-
1. Make Element a sub-class of OSLC_AM:Resource.
64
+
1. Make Element a subclass of `oslc_am:Resource`.
65
65
1. Configure the generator to NOT generate the AM classes (since these are already included as a maven dependency)
66
66
67
67
### 2.
68
68
69
-
After generating the domain classes, we need to change the "toString()" method on each resource to make it print the resources better.
69
+
After generating the domain classes, we need to change the `toString()` method on each resource to make it print the resources better.
70
70
71
-
Tips: Use Notepad++ to search/replace on all \*.java files.
71
+
Tips: Use Notepad++ to search/replace on all `*.java` files.
72
72
73
-
- Find: // Start of user code toString_finalize\n // End of user code
74
-
- Replace: // Start of user code toString_finalize\n result = getShortTitle();\n // End of user code
73
+
- Find: `// Start of user code toString_finalize\n // End of user code`
74
+
- Replace: `// Start of user code toString_finalize\n result = getShortTitle();\n // End of user code`
75
75
76
76
### 3.
77
77
78
-
In the generated jsp pages, there are calls to getDctermsType(), getDctermsIdentifier() and getDctermsSource(), but these methods do not exist.
79
-
They would have existed if the OSLC AM resources were generated. But because we are including the library as it is previously generated, the methods should be really getType(), getIdentifier() and getSource()
78
+
In the generated JSP pages, there are calls to `getDctermsType()`, `getDctermsIdentifier()` and `getDctermsSource()`, but these methods do not exist.
79
+
They would have existed if the OSLC AM resources were generated. But because we are including the library as it is previously generated, the methods should be really `getType()`, `getIdentifier()` and `getSource()`
0 commit comments