Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd CSL Ontology with URIs #41
Conversation
This comment has been minimized.
This comment has been minimized.
This looks fine to me, though I would think we want all variables, not just roles, included in the ontology, no? |
This comment has been minimized.
This comment has been minimized.
@adam3smith probably not. A lot of this stuff is designed to be modular, so they probably already have what they need in terms of properties (what you call variables). FWIW, I created BIBO as a preferred citation-oriented RDF ontology, but if there's some need for this lighter-weight alternative, I don't have any objection. |
This comment has been minimized.
This comment has been minimized.
My understanding is that this is about mapping between existing entities though, not using CSL to provide non-existent items/properties. But I might be misunderstanding. I have asked for clarification over on discourse. |
This comment has been minimized.
This comment has been minimized.
The list of CSL variables is very specific to CSL so there is unlikely a simple 1-to-1 or n-to-1 mapping from other data sources and formats to CSL. Roles, publication types, and categories are easier to map and they are more likely to be expanded if needed. |
This comment has been minimized.
This comment has been minimized.
Hmm, sure, but how can you create citations without such a mapping? That needs to be somewhere anyway, no? |
This comment has been minimized.
This comment has been minimized.
@adam3smith the mapping from Wikidata data model to CSL data model is hard-coded in citation.js. It is mainly based on Wikidata properties such as author that don't change that often. The mapping from Wikidata document types to CSL document types, however is more fluid because new document types are added regularly. At the moment there are almost 1500 document types in Wikidata so I'd like to put the mapping to CSL document types editable into Wikidata like already started for other ontologies. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This PR will then redirect the URI https://citationstyles.org/ontology/type/article to https://citationstyles.org/ontology/ but also any other type or even classification or roles. Wouldn't it be nicer when the URI stays unchanged when called? And when maybe at least the title is different for https://citationstyles.org/ontology/type/article and https://citationstyles.org/ontology/type/book? |
This comment has been minimized.
This comment has been minimized.
@zuphilip thanks for review and addition. Sure it would be nice when the URI does not resolve in a redirect and also returns proper RDF. But this is nice to have only. The primary purpose of this PR is to document the existence of official URIs. For human readers common redirect target page is enough. |
This comment has been minimized.
This comment has been minimized.
To what extent should the URIs be permanent? The current URLs don't have the CSL version in them, and beyond expansions we might rename or remove things in future CSL releases. |
This comment has been minimized.
This comment has been minimized.
URIs should be as permanent as CSL and resolve to the most current definition of a concept. New URIs may be added with new CSL versions but I rarely doubt that the general meaning of a category, role, or publication type changes between CSL versions. |
This comment has been minimized.
This comment has been minimized.
(looks fine to merge) |
adam3smith
merged commit 6df25c8
into
citation-style-language:master
Nov 13, 2018
This comment has been minimized.
This comment has been minimized.
Alright, let's do this then. @nichtich let us know once you have this implemented in WikiCite(?) |
This comment has been minimized.
This comment has been minimized.
Thanks, working on it. You will later get a mapping with schema.org via Wikidata for free. |
nichtich commentedOct 30, 2018
Introduce a new page https://citationstyles.org/ontology/ and
redirects from URIs for each category, role, and type. This helps
referencing elements of the CSL data model as discussed at
citation-style-language/schema#159.