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

Non-deterministic Output Formatting #46

Open
Aklakan opened this issue Oct 23, 2023 · 0 comments
Open

Non-deterministic Output Formatting #46

Aklakan opened this issue Oct 23, 2023 · 0 comments

Comments

@Aklakan
Copy link
Member

Aklakan commented Oct 23, 2023

It seems that the output itself is fine, but there seems to be a race condition when configuring the output writer.
An alternative reason could be that writer configuration still uses a reflection hack for configuration which might break.
Needs investigation.

Running rpt integrate /tmp/data.jsonld spo.rq --out-format turtle gives output with different formatting such as:

Variant A:

@prefix geo:  <http://www.opengis.net/ont/geosparql#> .
@prefix owl:  <http://www.w3.org/2002/07/owl#> .
@prefix rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .

<https://data.coypu.org/country/DEU>
        rdf:type                        <https://schema.coypu.org/global#Country>;
        rdfs:label                      "Germany"@en;

Variant B:

@prefix geo: <http://www.opengis.net/ont/geosparql#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
<https://data.coypu.org/country/DEU> rdfs:label "Germany"@en .
<https://data.coypu.org/country/DEU> rdf:type <https://schema.coypu.org/global#Country> .
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