Skip to content

Commit

Permalink
Changes required to publish PSD01
Browse files Browse the repository at this point in the history
Includes oslc_am inherited oslc:properties in the sysml-shapes.ttl.
  • Loading branch information
Jim Amsden committed Apr 2, 2024
1 parent 2474b41 commit 4ec3a8f
Show file tree
Hide file tree
Showing 6 changed files with 4,540 additions and 1,032 deletions.
55 changes: 54 additions & 1 deletion specs/sysml/Resources/getclasses.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"data": {
"text/plain": [
"<Graph identifier=N9b094db091f84758afb5415fcc1088b3 (<class 'rdflib.graph.Graph'>)>"
"<Graph identifier=Nd7d31ae2ce1f4e35b0d7eccca1f71236 (<class 'rdflib.graph.Graph'>)>"
]
},
"execution_count": 1,
Expand Down Expand Up @@ -151,6 +151,59 @@
"g.serialize(destination='../sysml-vocab.ttl')"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<Graph identifier=N1abcb63b808f469aa9a72794c46ce798 (<class 'rdflib.graph.Graph'>)>"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Add the ResourceShape Properties that should be inherited from oslc_am\n",
"\n",
"sysml_shapes = Namespace(\"http://open-services.net/ns/sysml/shapes/2.0/#\")\n",
"\n",
"g = Graph()\n",
"g.parse('../sysml-shapes.ttl')\n",
"\n",
"# get a list of the classes\n",
"shapes = g.subjects(rdf.type, oslc.ResourceShape)\n",
"\n",
"# and now create the shapeToSpec div for each class\n",
"for c in shapes:\n",
" g.add((c, oslc.property, sysml_shapes.type))\n",
" g.add((c, oslc.property, sysml_shapes.dctype))\n",
" g.add((c, oslc.property, sysml_shapes.identifier))\n",
" g.add((c, oslc.property, sysml_shapes.title))\n",
" g.add((c, oslc.property, sysml_shapes.shortTitle))\n",
" g.add((c, oslc.property, sysml_shapes.description))\n",
" g.add((c, oslc.property, sysml_shapes.source))\n",
" g.add((c, oslc.property, sysml_shapes.creator))\n",
" g.add((c, oslc.property, sysml_shapes.created))\n",
" g.add((c, oslc.property, sysml_shapes.contributor))\n",
" g.add((c, oslc.property, sysml_shapes.modified))\n",
" g.add((c, oslc.property, sysml_shapes.serviceProvider))\n",
" g.add((c, oslc.property, sysml_shapes.instanceShape))\n",
" g.add((c, oslc.property, sysml_shapes.derives))\n",
" g.add((c, oslc.property, sysml_shapes.elaborates))\n",
" g.add((c, oslc.property, sysml_shapes.refine))\n",
" g.add((c, oslc.property, sysml_shapes.external))\n",
" g.add((c, oslc.property, sysml_shapes.satisfy))\n",
" g.add((c, oslc.property, sysml_shapes.trace))\n",
"\n",
"\n",
"g.serialize(destination='../sysml-shapes2.ttl')"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
13 changes: 8 additions & 5 deletions specs/sysml/sysml-shapes.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
class="remove"
></script>
<script class="remove">
var status = "WD";
var status = "PSD";
var revision = 1;

var wdBase = "https://oslc-op.github.io/oslc-specs/specs/sysml/";
var oasisBase = "https://docs.oasis-open-projects.org/oslc-op/sysml/v2.0";
var oasisBase = "https://docs.oasis-open-projects.org/oslc-op/sysml/v2.0/";
var thisBase = wdBase;
if ("WD" !== status) {
if (status == "OS") {
Expand All @@ -42,7 +42,7 @@
},
],

publishDate: "2024-04-01T12:00Z",
publishDate: "2024-04-25T12:00Z",
//previousPublishDate: "2021-09-30",
//previousMaturity: "PS",

Expand All @@ -52,6 +52,8 @@
latestSpecVersion: "https://open-services.net/spec/sysml/latest",
edDraftURI: "https://open-services.net/spec/sysml/latest-draft",

conformanceLabelPrefix: "SML",

// Other parts of multi-part spec
additionalArtifacts: [
{
Expand Down Expand Up @@ -219,8 +221,9 @@
<body>
<section id="abstract">
<p>
OSLC Systems Modeling Language Version 2.0. Part 2: Vocabulary defines the RDF vocabulary terms and resources
that are the OSLC representation of the corresponding OMG Systems Modeling Language Version 2.0.
OSLC Systems Modeling Language Version 2.0. Part 3: Constraints defines the standard OSLC constratint on the RDF
vocabulary terms and resources that are the OSLC representation of the corresponding OMG Systems Modeling
Language Version 2.0.
</p>
</section>

Expand Down
Loading

0 comments on commit 4ec3a8f

Please sign in to comment.