mkroetzsch added a comment. @daniel Changing the base URIs is not working as a way to communicate breaking changes to users of RDF. You can change them, but there is no way to make users notice this change, and it will just break a few more queries. It's just not how RDF works. Most of our test queries do not even mention any wikibase ontology URI, yet they are likely to be broken by changes to come. If you think that we need a way to warn users of such changes, you need to think of another way of doing this.
Here is how I would do ontology and RDF model versioning: - Ontology URIs are never changed. They are all based on the same base URI (prefix). - If an update would change the meaning of an ontology element in fundamental ways, a new URI (new local name) is used rather than redefining an existing URI. - The ontology needs to have a file (with OWL property and class declarations, some labels, etc.). The file name of this file (and thus its URL) should include a version number. - The ontology URIs should redirect to the most recent version of the ontology file. An improved setup would use content negotiation to redirect to an HTML documentation or to the ontology file. One can use URL fragments for local names in both cases. - The versioned ontology file is imported into the data dump using an OWL import statement. - In addition to the ontology import triple, the data contains a triple that defines the version of the RDF model used. This triple uses an annotation property to the dataset ontology element (i.e., the subject of the import triple, not the Wikibase ontology file). Then users can query for the RDF model version to check compatibility. Like in Daniel's proposal, there is no warning if they don't do this check, but in contrast to Daniel's proposal, users have a way to find out which version of the model is used, and the versioning can refer to the whole RDF model (not just to the Wikibase ontology, which most of our current example queries are not even referring to). TASK DETAIL https://phabricator.wikimedia.org/T94747 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>. EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: mkroetzsch Cc: Denny, mkroetzsch, daniel, Lydia_Pintscher, Aklapper, Smalyshev, jkroll, Wikidata-bugs, Jdouglas, aude, GWicke, Manybubbles, JanZerebecki _______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs