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

DCAT alias #835

Closed
wants to merge 202 commits into from
Closed

DCAT alias #835

wants to merge 202 commits into from

Conversation

dr-shorthair
Copy link
Contributor

Alias
DCAT --> vocab-dcat-3

Simon Cox and others added 30 commits September 8, 2017 10:10
* Update WGS84

* rename NIMA version to WGS84-NIMA

---------

Co-authored-by: Simon Cox <[email protected]>
* Add keys and patterns for ISO and OGC standard numbers (similar to IETF RFC numbers)

* Need to double escape backslash in JSON pattern

* Add option for /IEC as part of isoNumber

* Add ISO numbers and OGC numbers for some existing entries

* Add OMS and O&M (OGC and ISO standards)

* Added new versions of GML

* Fixed duplicated URL

* Add GeoSPARQL 1.1

* OMXML and SensorML

* Unbalanced parenthesis

* stray comma :-(

* Restructure GeoSPARQL version chain

* Update WGS84

* rename NIMA version to WGS84-NIMA

---------

Co-authored-by: Simon Cox <[email protected]>
* Fix SMIL20 aliases and overwrite rules for media-source

I'm working with @deniak on improving the data in the W3C API so that Specref
may more easily switch to the W3C API. One rippling effect is that this means
that some of the hacks done to get the right entries are no longer needed (and
now create duplicates). Adjusting the rules accordingly.

* Add updated w3c.json

(That's the result of running the W3C script. Needed for tests to pass)
@dr-shorthair
Copy link
Contributor Author

@tidoust this one should be safe

@tidoust
Copy link
Collaborator

tidoust commented Nov 29, 2024

Tests do pass but note that's the same issue as in #834 that just gets postponed to a future date.

The vocab-dcat-3 spec creates entries such as vocab-dcat-3-20201217. If DCAT is made an alias to vocab-dcat-3, then that means entries such as DCAT-20201217 get created. If, later on, a level 4 gets worked on and you want to update DCAT to target vocab-dcat-4 instead of vocab-dcat-3, that won't work because DCAT-20201217 would then no longer exist. Again ,the right fix would be to have support for specification series (raised in #811) and the general guideline is "use references with levels" in the meantime.

I'm not trying to block this. Other entries got created using that model before, including some I fear I contributed. But that does not fit nicely with the way Specref models things for now.

@dr-shorthair
Copy link
Contributor Author

So are you saying that there is currently no way to refer to version-free DCAT using specref.
And no way to fix that.

I'm editing the new edition of the W3C SSN Ontology and we wish to draw attention to the parallel between ObservationCollection and dcat:Dataset. That DCAT class is in all editions of DCAT, so the reference should reflect that.

[vocab-dcat] links to a version that is clearly marked 'obsolete' so I don't want to use that.
I guess I'll have to add a local entry in the config.js instead. That seems unsatisfactory.

@tidoust
Copy link
Collaborator

tidoust commented Dec 2, 2024

So are you saying that there is currently no way to refer to version-free DCAT using specref.

That's correct. For example, there's no way to reference css-color. You have to choose between css-color-3, css-color-4, css-color-5, or css-color-6: https://www.specref.org/?q=css-color

And no way to fix that.

No good way. There's always a way to force entries into Specref. If DCAT is made an alias of vocab-dcat-3 then, when time comes to update the link to vocab-dcat-4, it is possible to force the creation of previous version entries in Specref, meaning to define entries such as:

"DCAT-20201217": {
  "aliasOf": "vocab-dcat-3-20201217"
}

This will have to be done for all dated versions of vocab-dcat-3. That's the current workaround and there are entries done like this in the w3c.json file.

I guess I'll have to add a local entry in the config.js instead. That seems unsatisfactory.

That seems like a good solution to solve your immediate problem. I suspect I'll look into adding support for specification series to Specref in a not too distant future because I need it as well. But that depends on other pending updates.

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

Successfully merging this pull request may close these issues.

4 participants