Closed jamsden closed 3 weeks ago
Jad, See Resources/getclasses.ipynb - a Jupyter notebook that gets the first paragraph and strips the HTML for the rdfs:comment in the vocab, and just gets the first paragraph and keeps the HTML markup for the dcterms:description in the shapes file.
This looks like the result is just fine. So I think this is a reasonable approach - using the first paragraph.
Also adding rdfs:isDefinedBy oslc_sysmlv2: and fixing the rdfs:comment cleaned up most of the shapeChecker errors. So we're on the right track.
I've updated the files in the repo, so you can see what I patched up so far.
Jad, if you can't get the .ttl files regenerated and cleaned up before next week, then I propose we consider publishing what we have now as PSD01.
@jamsden! I am on easter break this week. Will try to get started, but the list is extensive. A good approach would be that we publish what you are manually making, and this gives me time to catch up.
Ok, I'll prepare the documents for publishing PSD01 using what I have. We can fix it in a subsequent revision or PS.
This has been re-implemented and the items above completed, so closing.
[x] The oslc_sysmlv2:Element rdfs:subClassOf oslc_am:Resource is missing.
[x] The SysML ResourceShapes are missing the inherited oslc_am:Resource properties. The following oslc_am properties need to be copied into sysml-shapes.ttl, it is not possible to inherit, or reference "inherited" shape properties.
Since ResourceShapes do not support inheritance, the oslc_am:Resource properties will need to be replicated in every oslc_sysmlv2 class, making the sysml-shapes.html file huge. But this can be done. It should be part of the sysml-shapes.ttl generation from SysML/20240201/SysML.xmi.
: a oslc:ResourceShapeConstraints ; dcterms:title "OSLC System Modeling Language (SysML) Version 2.0 Constraints" ; rdfs:label "OSLC System Modeling Language (SysML) Constraints" ; dcterms:description "All vocabulary URIs defined in the OSLC System Modeling Language (SysML) namespace."^^rdf:XMLLiteral ; dcterms:publisher https://open-services.net/about/ ; dcterms:issued "2024-08-01"^^http://www.w3.org/2001/XMLSchema#date ; dcterms:license http://www.apache.org/licenses/LICENSE-2.0 ; dcterms:source https://docs.oasis-open-projects.org/oslc-op/sysml/v2.0/psd01/sysml-shapes.ttl ; dcterms:isPartOf https://docs.oasis-open-projects.org/oslc-op/sysml/v2.0/psd01/sysml-spec.html ; dcterms:hasVersion "PSD" ; dcterms:dateCopyrighted "2012-2024" .
Copyright 2024 OASIS Open
#
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
#
http://www.apache.org/licenses/LICENSE-2.0
#
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@prefix oslc_sysmlv2: https://www.omg.org/spec/SysML/2.0#
oslc_sysmlv2: a owl:Ontology ; dcterms:title "OSLC SysML v2 Vocabulary" ; rdfs:label "OSLC SysML v2 Vocabulary" ; dcterms:description "All vocabulary URIs defined in the OSLC SysML v2 namespace."^^rdf:XMLLiteral ; vann:preferredNamespacePrefix "oslc_sysmlv2" ; dcterms:publisher https://open-services.net/about/ ; dcterms:issued "2022-07-11"^^http://www.w3.org/2001/XMLSchema#date ; dcterms:license http://www.apache.org/licenses/LICENSE-2.0 ; dcterms:source https://docs.oasis-open-projects.org/oslc-op/sysml/v2.0/os/sysml-vocab.ttl ; dcterms:isPartOf https://docs.oasis-open-projects.org/oslc-op/sysml/v2.0/os/sysml-spec.html ; dcterms:hasVersion "WD" ; dcterms:dateCopyrighted "2012-2024" .
rdfs:isDefinedBy oslc_sysmlv2: ; rdfs:label "{name}" ;
cd ~/Developer/OSLC/oslc-op/oslc-specs/tools/ShapeChecker build/install/ShapeChecker/bin/ShapeChecker \ -v ../../specs/sysml/sysml-vocab.ttl \ -s ../../specs/sysml/sysml-shapes.ttl