Skip to content

Commit c7b69e8

Browse files
authored
docs: README fix links + minor updates (#33)
1 parent 24b209f commit c7b69e8

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

readme.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,22 @@ Alternatively, do a manual install:
2525
1. this is necessary if changes are made to the classes in the sysml-domain, which the sysml-server depends on.
2626
1. This is also necessary when running for the first time.
2727
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
3131

3232
## Query
3333

3434
Example queries we can execute (if you chose version `11609e2b-a4df-4a64-9e61-a45660c28542`):
3535

36-
http://localhost:8085/sysml_oslc_server/services/projects/23561420-ef88-4249-bf99-651670ff438f/service6/features/query
36+
http://localhost:8085/sysml_oslc_server/oslc/projects/23561420-ef88-4249-bf99-651670ff438f/service6/features/query
3737

3838
- `oslc.where sysml:identifier="5bc41f66-4d42-41da-b7a3-92af54dab320"`
3939
- `oslc.prefix sysml=<http://omg.org/ns/sysml#>`
4040

4141
## Info
4242

43-
The domain-classes are based on the ecore file, located underhttps
43+
The domain-classes are based on the ecore file, located under:
4444

4545
- Repo: https://github.com/ModelDriven/SysML-v2-Pilot-Implementation.git
4646
- filePath: org.omg.sysml\model\SysML.ecore
@@ -49,9 +49,9 @@ The Swagger Docs for the REST server has base: http://sysml2-dev.intercax.com:90
4949

5050
## Developer Info - Manual steps when re-generating model and code
5151

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.
5353

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.
5555

5656
- The first can be automated in the future.
5757
- 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
6161

6262
Before generating the java classes, the generated Lyo model is manually modified to:
6363

64-
1. Make Element a sub-class of OSLC_AM:Resource.
64+
1. Make Element a subclass of `oslc_am:Resource`.
6565
1. Configure the generator to NOT generate the AM classes (since these are already included as a maven dependency)
6666

6767
### 2.
6868

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.
7070

71-
Tips: Use Notepad++ to search/replace on all \*.java files.
71+
Tips: Use Notepad++ to search/replace on all `*.java` files.
7272

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`
7575

7676
### 3.
7777

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()`
8080

8181
# License
8282

0 commit comments

Comments
 (0)