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

Ensure prefixes are not repeated when using specific namespaces and also some prefixes are read from turtle files #144

Open
DaniFdezAlvarez opened this issue Apr 13, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@DaniFdezAlvarez
Copy link
Owner

Example. If I use this dict in default_namespaces:

{ "http://example.org/": "ex",
"http://www.w3.org/XML/1998/": "xml",
"http://www.w3.org/1999/02/": "rdf",
"http://www.w3.org/2000/01#": "rdfs",
"http://www.w3.org/2001#": "xsd",
"http://xmlns.com/foaf/": "foaf"
}

and also I parse turtle files with these other namespaces:

@Prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# .
@Prefix rdfs: http://www.w3.org/2000/01/rdf-schema# .
@Prefix ex: http://example.org/ .
@Prefix foaf: http://xmlns.com/foaf/0.1/ .
@Prefix xsd: http://www.w3.org/2001/XMLSchema# .

Then my prefix declarations in ShExC look like this:

PREFIX ex: http://example.org/
PREFIX xml: http://www.w3.org/XML/1998/
PREFIX rdf: http://www.w3.org/1999/02/
PREFIX rdfs: http://www.w3.org/2000/01#
PREFIX xsd: http://www.w3.org/2001#
PREFIX foaf: http://xmlns.com/foaf/
PREFIX : http://weso.es/shapes/
PREFIX xml: http://www.w3.org/XML/1998/namespace/
PREFIX rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema#
PREFIX xsd: http://www.w3.org/2001/XMLSchema#
PREFIX foaf: http://xmlns.com/foaf/0.1/

@DaniFdezAlvarez DaniFdezAlvarez added the bug Something isn't working label Apr 13, 2023
@DaniFdezAlvarez DaniFdezAlvarez self-assigned this Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant