Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

json-ld: only add items to context if they're used in this document #179

Open
alastair opened this issue Apr 11, 2021 · 0 comments
Open

Comments

@alastair
Copy link
Member

We have some hard-coded url -> prefixes for the contexts that we use:

const scopedContexts = {
dc: 'http://purl.org/dc/terms/',
prov: 'http://www.w3.org/ns/prov#',
skos: 'http://www.w3.org/2004/02/skos/core#',
rdf: 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
bib: 'https://bib.schema.org/'
}

We should only return these mappings if the prefix is used in the document that is being returned

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

No branches or pull requests

1 participant