Skip to content

Issue 575: Type metaclass members as classes#576

Open
ajnelson-nist wants to merge 5 commits intogh-pagesfrom
issue-575-also-designate-classes
Open

Issue 575: Type metaclass members as classes#576
ajnelson-nist wants to merge 5 commits intogh-pagesfrom
issue-575-also-designate-classes

Conversation

@ajnelson-nist
Copy link
Copy Markdown
Contributor

Closes #575 .

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
This patch ports some of the #575 updates respective of #484's concept
renames, and adds other catch-up statements based on the results of this
shapes graph run against `shnex.ttl`:

```turtle
PREFIX rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX sh:   <http://www.w3.org/ns/shacl#>

<urn:example:shapes:Issue575-shape>
	a sh:NodeShape ;
	sh:class rdfs:Class ;
	sh:targetSubjectsOf rdfs:subClassOf ;
	.
```

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
This patch adds explicit class statements based on the results of this
shapes graph run against `shnex-shacl.ttl`:

```turtle
PREFIX rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX sh:   <http://www.w3.org/ns/shacl#>

<urn:example:shapes:Issue575-shape>
	a sh:NodeShape ;
	sh:class rdfs:Class ;
	sh:targetSubjectsOf rdfs:subClassOf ;
	.
```

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
@ajnelson-nist
Copy link
Copy Markdown
Contributor Author

This PR is now caught up and ready for review. I ran a shapes graph (recorded in Git log) to check for where this pattern applies. shnex-sparql.ttl saw a lot of resultant updates from making the metaclass pattern more explicit. Nothing further was needed for shacl-shacl.ttl or shacl.ttl.

Copy link
Copy Markdown
Contributor

@HolgerKnublauch HolgerKnublauch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am sorry but I don't agree with this change right now. It may be better to wait for input from other people, see the Issue where I explained why I find this triple redundant and we shouldn't repeat ourselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Node Expressions For SHACL 1.2 Node Expressions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Members of metaclasses should explicitly be classes

3 participants