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

CanLink data - properties without declared prefix #433

Open
anayram opened this issue Feb 14, 2019 · 2 comments
Open

CanLink data - properties without declared prefix #433

anayram opened this issue Feb 14, 2019 · 2 comments
Assignees
Labels

Comments

@anayram
Copy link
Member

anayram commented Feb 14, 2019

Declare prefixes for properties without one for easier handling.

List of proposed prefixes available at
https://docs.google.com/spreadsheets/d/1FDcBk2JBDvyn_7QGN_XVbbxSujmQJ0QTMvwXgetJ34A/edit?usp=sharing

@danydvd
Copy link
Contributor

danydvd commented Feb 14, 2019

@anayram I added some of the prefixes from the list to the mappings used in new Canlink website:

'http://www.w3.org/1999/02/22-rdf-syntax-ns#': 'rdf:',
'http://rdfs.org/ns/void#': 'rdfs:',
'http://canlink.library.ualberta.ca/': 'canlink:',
'http://www.w3.org/2002/07/owl#': 'owl:',
'http://www.w3.org/ns/prov#': 'prov:',
'http://dbpedia.org/resource/': 'dbpedia:',
'http://id.loc.gov/vocabulary/relators/': 'rel:',
'http://schema.org/': 'schema:',
'http://purl.org/vocab/frbr/core#': 'frbr:',
'http://sparql.cwrc.ca/ontologies/genre#': 'cwrc:',
'http://xmlns.com/foaf/0.1/': 'foaf:',
'http://purl.org/dc/terms/': 'dcterms:',
'http://purl.org/ontology/bibo/': 'bibo:',
'http://id.loc.gov/authorities/subjects/': 'lcsh:',
'http://data.bnf.fr/ark:/': 'bnf:',
'http://sparql.cwrc.ca/ontologies/genre#': 'cwrc:',
'http://www.w3.org/ns/dcat#': 'dcat',
'http://www.w3.org/2004/02/skos/core#': 'skos:',
'http://rdfs.org/ns/void#': 'void:'

Currently the app replaces the urls with the prefix (example). I tried adding this to the data in GraphDB and it works fine. However, when pulling data with python it fails to pull the prefixes and show the full url. I tried adding the PREFIXs to the SPARQL query but it did not help.

Do you think we should keep using the mapping process in the Django APP? If so we should make sure that this list is always up-to-date.

@anayram
Copy link
Member Author

anayram commented Feb 14, 2019

@danydvd and I just talked about this and we will continue to use the hardcoded app mapping for now and after launch we will look into creating a data dictionary for CanLink to maintain properties.

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

No branches or pull requests

2 participants