ualbertalib / metadata

UAL metadata team's repository
14 stars 6 forks source link

CanLink data - properties without declared prefix #433

Open anayram opened 5 years ago

anayram commented 5 years ago

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 commented 5 years ago

@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 commented 5 years ago

@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.