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

dash:EnumSelectEditor converts IRIs to strings #414

Closed
markwilkinson opened this issue May 31, 2023 · 1 comment
Closed

dash:EnumSelectEditor converts IRIs to strings #414

markwilkinson opened this issue May 31, 2023 · 1 comment

Comments

@markwilkinson
Copy link
Contributor

markwilkinson commented May 31, 2023

Describe the bug
A SHACL descriptor that sets the node type as IRI, and provides a sh:in list of IRIs, will correctly display the dropdown list using only the localname, but when converted to RDF, those IRIs will become strings.

To Reproduce
Steps to reproduce the behavior:

Metadata Definition:

[
    sh:path ejp:vpConnection ;
    sh:nodeKind sh:IRI ;
    sh:in (<http://purl.org/ejp-rd/vocabulary/VPDiscoverable> <http://purl.org/ejp-rd/vocabulary/VPQueryable>) ;
    sh:minCount 0 ;
    sh:maxCount 2 ;
    sh:order 0 ;
    dash:editor dash:EnumSelectEditor ;
    dash:viewer dash:LabelViewer ;
  ] .

Result:

@prefix dcat: <http://www.w3.org/ns/dcat#>.
@prefix dct: <http://purl.org/dc/terms/>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix loc: <http://localhost:7070/>.
@prefix c: <http://localhost:7070/catalog/>.
@prefix voc: <http://purl.org/ejp-rd/vocabulary/>.

loc:new
    a dcat:DataService, dcat:Resource;
    dct:isPartOf c:3bb6ba9a-c2f4-4d15-9f3c-e495da1e7418;
    dct:publisher [ a foaf:Agent ];
    voc:vpConnection "http://purl.org/ejp-rd/vocabulary/VPDiscoverable".

Expected behavior

The output RDF, with the stringified IRI, cannot validate against the nodeType IRI, and therefore it is impossible to use the EnumSelectEditor to select from a set of IRIs. This is... disappointing ;-)

Context
Please fill the following and eventually add additional information (e.g. about used storage in case that issue is storage-related):

  • FDP version: 1.16.2
  • Docker Engine version: 20.10.21
  • Operating System: Linux
@markwilkinson
Copy link
Contributor Author

Heh.... just checked 1.16.3-rc.1 and the bug is already fixed! Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant