Submission error #11

Closed
opened 2025-06-03 10:15:08 +00:00 by jsheunis · 2 comments
Owner

Submitting the following:

@prefix dash: <http://datashapes.org/dash#>.
@prefix dlidentifiers: <https://concepts.datalad.org/s/identifiers/unreleased/>.
@prefix dlthings: <https://concepts.datalad.org/s/things/v1/>.
@prefix dltypes: <https://concepts.datalad.org/s/types/unreleased/>.
@prefix inm7fb: <https://concepts.inm7.de/s/flat-base/unreleased/>.
@prefix inm7fd: <https://concepts.inm7.de/s/flat-data/unreleased/>.
@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#>.
@prefix skos: <http://www.w3.org/2004/02/skos/core#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix ADMS: <http://www.w3.org/ns/adms#>.
@prefix dcterms: <http://purl.org/dc/terms/>.
@prefix linkml: <https://w3id.org/linkml/>.
@prefix ns1: <http://purl.org/ontology/bibo/>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix pav: <http://purl.org/pav/>.
@prefix prov: <http://www.w3.org/ns/prov#>.
@prefix sio: <http://semanticscience.org/resource/>.
@prefix spdx: <http://spdx.org/rdf/terms#>.
@prefix w3ctr: <https://www.w3.org/TR/>.
@prefix dlprops: <https://concepts.datalad.org/s/properties/unreleased/>.
@prefix dlpubs: <https://concepts.datalad.org/s/publications/unreleased/>.
@prefix dlres: <https://concepts.datalad.org/s/resources/unreleased/>.
@prefix dlroles: <https://concepts.datalad.org/s/roles/unreleased/>.
@prefix dlschemas: <https://concepts.datalad.org/s/>.
@prefix dlsocial: <https://concepts.datalad.org/s/social/unreleased/>.
@prefix dlspatial: <https://concepts.datalad.org/s/spatial/unreleased/>.
@prefix dltemporal: <https://concepts.datalad.org/s/temporal/unreleased/>.
@prefix doi: <https://dx.doi.org/>.
@prefix email: <https://concepts.datalad.org/ns/email/>.
@prefix eunal: <http://publications.europa.eu/resource/authority/>.
@prefix geo: <geo:>.
@prefix gepris: <https://gepris.dfg.de/gepris/>.
@prefix inm7: <https://inm7.de/ns/>.
@prefix inm7datamgt: <https://inm7.de/ns/datamgt/>.
@prefix marcrel: <http://id.loc.gov/vocabulary/relators/>.
@prefix obo: <http://purl.obolibrary.org/obo/>.
@prefix orcid: <https://orcid.org/>.
@prefix ror: <https://ror.org/>.
@prefix schema: <http://schema.org/>.
@prefix sct: <http://snomed.info/id/>.

inm7datamgt:8a847762-8823-427a-aaf5-8247f922595c a inm7fd:Dataset;
    inm7fb:name "palmerpenguins";
    inm7fb:short_name "palmerpenguins";
    dlthings:description "The goal of palmerpenguins is to provide a great dataset for data exploration & visualization, as an alternative to iris.";
    skos:prefLabel "palmerpenguins";
    dlthings:relation inm7datamgt:86c87c36-67f3-43c7-9795-59e704d0be7d, inm7datamgt:ef3e7a7a-759e-4e33-a4e4-53c56273ff31, inm7datamgt:c05a51b8-d24d-463b-a1d1-eff4160f34c3;
    inm7fb:record_contact inm7datamgt:ef3e7a7a-759e-4e33-a4e4-53c56273ff31;
    dlidentifiers:identifier _:_:50bfede0-871f-4d8c-9eaf-b05127008f99, _:_:7905dca0-6657-4ead-8d3e-e4e6db512291.
_:_:50bfede0-871f-4d8c-9eaf-b05127008f99 a dlidentifiers:IssuedIdentifier;
    dlidentifiers:schema_agency "https://doi.org/";
    dlidentifiers:notation "10.5281/zenodo.3960218".
_:_:7905dca0-6657-4ead-8d3e-e4e6db512291 a dlidentifiers:IssuedIdentifier;
    dlidentifiers:schema_agency "https://doi.org/";
    dlidentifiers:notation "10.32614/CRAN.package.palmerpenguins".

gives a 400 response postRDF error: HTTP 400 from https://metadata.inm7.de/datamgt-v1/record/Dataset?format=ttl with detail:

detail	`Conversion error: at line 51 of <>:\nBad syntax (expected '.' or '}' or ']' at end of statement) at ^ in:\n"...b'59e-4e33-a4e4-53c56273ff31;\\n dlidentifiers:identifier _:_'^b':50bfede0-871f-4d8c-9eaf-b05127008f99, _:_:7905dca0-6657-4ea'..."`

and also a second error:

TypeError: null has no properties
    _termFromId N3Store.js:99
    _findInIndex N3Store.js:246
    readQuads N3Store.js:530
    getQuads N3Store.js:488
    o io.js:24
    kO io.js:22
    n useForm.js:99
    $ SubmitComp.vue:132
    4 SubmitComp.vue:166
Submitting the following: ``` @prefix dash: <http://datashapes.org/dash#>. @prefix dlidentifiers: <https://concepts.datalad.org/s/identifiers/unreleased/>. @prefix dlthings: <https://concepts.datalad.org/s/things/v1/>. @prefix dltypes: <https://concepts.datalad.org/s/types/unreleased/>. @prefix inm7fb: <https://concepts.inm7.de/s/flat-base/unreleased/>. @prefix inm7fd: <https://concepts.inm7.de/s/flat-data/unreleased/>. @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#>. @prefix skos: <http://www.w3.org/2004/02/skos/core#>. @prefix xsd: <http://www.w3.org/2001/XMLSchema#>. @prefix ADMS: <http://www.w3.org/ns/adms#>. @prefix dcterms: <http://purl.org/dc/terms/>. @prefix linkml: <https://w3id.org/linkml/>. @prefix ns1: <http://purl.org/ontology/bibo/>. @prefix owl: <http://www.w3.org/2002/07/owl#>. @prefix pav: <http://purl.org/pav/>. @prefix prov: <http://www.w3.org/ns/prov#>. @prefix sio: <http://semanticscience.org/resource/>. @prefix spdx: <http://spdx.org/rdf/terms#>. @prefix w3ctr: <https://www.w3.org/TR/>. @prefix dlprops: <https://concepts.datalad.org/s/properties/unreleased/>. @prefix dlpubs: <https://concepts.datalad.org/s/publications/unreleased/>. @prefix dlres: <https://concepts.datalad.org/s/resources/unreleased/>. @prefix dlroles: <https://concepts.datalad.org/s/roles/unreleased/>. @prefix dlschemas: <https://concepts.datalad.org/s/>. @prefix dlsocial: <https://concepts.datalad.org/s/social/unreleased/>. @prefix dlspatial: <https://concepts.datalad.org/s/spatial/unreleased/>. @prefix dltemporal: <https://concepts.datalad.org/s/temporal/unreleased/>. @prefix doi: <https://dx.doi.org/>. @prefix email: <https://concepts.datalad.org/ns/email/>. @prefix eunal: <http://publications.europa.eu/resource/authority/>. @prefix geo: <geo:>. @prefix gepris: <https://gepris.dfg.de/gepris/>. @prefix inm7: <https://inm7.de/ns/>. @prefix inm7datamgt: <https://inm7.de/ns/datamgt/>. @prefix marcrel: <http://id.loc.gov/vocabulary/relators/>. @prefix obo: <http://purl.obolibrary.org/obo/>. @prefix orcid: <https://orcid.org/>. @prefix ror: <https://ror.org/>. @prefix schema: <http://schema.org/>. @prefix sct: <http://snomed.info/id/>. inm7datamgt:8a847762-8823-427a-aaf5-8247f922595c a inm7fd:Dataset; inm7fb:name "palmerpenguins"; inm7fb:short_name "palmerpenguins"; dlthings:description "The goal of palmerpenguins is to provide a great dataset for data exploration & visualization, as an alternative to iris."; skos:prefLabel "palmerpenguins"; dlthings:relation inm7datamgt:86c87c36-67f3-43c7-9795-59e704d0be7d, inm7datamgt:ef3e7a7a-759e-4e33-a4e4-53c56273ff31, inm7datamgt:c05a51b8-d24d-463b-a1d1-eff4160f34c3; inm7fb:record_contact inm7datamgt:ef3e7a7a-759e-4e33-a4e4-53c56273ff31; dlidentifiers:identifier _:_:50bfede0-871f-4d8c-9eaf-b05127008f99, _:_:7905dca0-6657-4ead-8d3e-e4e6db512291. _:_:50bfede0-871f-4d8c-9eaf-b05127008f99 a dlidentifiers:IssuedIdentifier; dlidentifiers:schema_agency "https://doi.org/"; dlidentifiers:notation "10.5281/zenodo.3960218". _:_:7905dca0-6657-4ead-8d3e-e4e6db512291 a dlidentifiers:IssuedIdentifier; dlidentifiers:schema_agency "https://doi.org/"; dlidentifiers:notation "10.32614/CRAN.package.palmerpenguins". ``` gives a 400 response `postRDF error: HTTP 400 from https://metadata.inm7.de/datamgt-v1/record/Dataset?format=ttl` with detail: ``` detail `Conversion error: at line 51 of <>:\nBad syntax (expected '.' or '}' or ']' at end of statement) at ^ in:\n"...b'59e-4e33-a4e4-53c56273ff31;\\n dlidentifiers:identifier _:_'^b':50bfede0-871f-4d8c-9eaf-b05127008f99, _:_:7905dca0-6657-4ea'..."` ``` and also a second error: ``` TypeError: null has no properties _termFromId N3Store.js:99 _findInIndex N3Store.js:246 readQuads N3Store.js:530 getQuads N3Store.js:488 o io.js:24 kO io.js:22 n useForm.js:99 $ SubmitComp.vue:132 4 SubmitComp.vue:166 ```
Author
Owner

looks like the double _: prefix of blank nodes is the problem; and it was probably introduced when moving to n3 from rdf-ext. I assume, haven't tested, that the BlankNode function of each package handles prefixes differently. In the existing shacl-vue, the code explicitly prefixes a blank node identifier with _:. I tested a possible fix locally by removing that prefix, and a similar submission succeeded.

looks like the double `_:` prefix of blank nodes is the problem; and it was probably introduced when moving to `n3` from `rdf-ext`. I assume, haven't tested, that the `BlankNode` function of each package handles prefixes differently. In the existing `shacl-vue`, the code explicitly prefixes a blank node identifier with `_:`. I tested a possible fix locally by removing that prefix, and a similar submission succeeded.
Owner

Closing manually.

Closing manually.
mih closed this issue 2025-06-04 04:37:22 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
inm7/annotate.inm7.de-data#11
No description provided.