Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHACL: Constraint on foaf:primaryTopic #174

Closed
andrea-perego opened this issue Jan 23, 2021 · 4 comments
Closed

SHACL: Constraint on foaf:primaryTopic #174

andrea-perego opened this issue Jan 23, 2021 · 4 comments
Labels
component:shacl release:2.1.0-dec2021 status:fixed This issue has been fixed in a draft.

Comments

@andrea-perego
Copy link

The current SHACL constraints raise a sh:Violation when an instance of foaf:primaryTopic is missing from a dcat:CatalogRecord, even when its inverse foaf:isPrimaryTopicOf is present.

This results in a validation error for GeoDCAT-AP records generated from INSPIRE / ISO 19115 ones, as, in such cases, foaf:isPrimaryTopicOf is more frequently used.

Is there a strong reason why the use of foaf:isPrimaryTopicOf instead of foaf:primaryTopic is not satisfying the requirements underlying the relevant constraint?

@jakubklimek
Copy link
Contributor

One obvious reason is the simplicity of applications working with DCAT-AP data. It is simpler to expect one of the inverse property pair than to account for both. Especially, when the problem can be addressed at the data publisher side by adding the inverse property there.

@bertvannuffelen
Copy link
Contributor

I share the remark of @jakubklimek.

In general inverse-named properties (propA and propB) create challenges on several levels:

  • does the inverse relation always holds? So it holds that s1 propA o1 would mean o1 propB s1 and s2 propB o2 would mean o2 propA s2
  • cardinality constraints on propA and propB are aligned
  • does a catalogue must contain propA and propB always? If not, what is the prime property to be shared: propA or propB?

Many of these questions are dropped if only direction (typically the most natural one) is part of the specification. The other is than a supportive property for implementations.

@bertvannuffelen
Copy link
Contributor

proposal:

no change to the specification.

@bertvannuffelen
Copy link
Contributor

Since no objections have been formulated to this resolution, no adaptations to the shacl shape are included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:shacl release:2.1.0-dec2021 status:fixed This issue has been fixed in a draft.
Projects
None yet
Development

No branches or pull requests

3 participants