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
Preferred property label, refs #1865 #1879
Conversation
@kghbln After a turbo sprint weekend and as stipulated, the PR is more or less finished before the SMWCon. It is nearly feature complete and only requires manual testing and CI integration tests. As for the usage:
|
@kghbln This PR requires to run |
This PR took a lot of energy ... |
I cannot even imagine all the effort! Another great one, indeed!!
I have updated the wiki and added the example pages:
The only thing that seem so cause an issue is that one can only assign one value per language so |
As per #1865 "Borrowing on the skos:prefLabel definition, the preferred label is understood as to only have one label per given language ..." and [0], so yes this was made on purpose. Imaging you have Property:P106 (which I pulled from Wikidata) demonstrates this issue where you have competing labels for the same language with the first being registered on the property page being defined as preferred and any other label that is trying to occupy the same declarative space (with the same language) is marked as error. There is a concept of alternative labels [1] but I'm not sure how helpful this is or how we would use it other than to clarify to a user that they are synonyms (we also have redirects that form equality to a property instance, expressed as But let's say, you would be able to do |
I was just surprised to see all these errors. Did not guess that this was part of the demo.
Yeah, now I know the reason. I think the error ensures consistency so in the end it has to be decided which one should be used -> no competition and in the end no confusion. The clarification that labels are synonyms comes from the error note telling that the "canonical" label (= label already assigned) should be used.
Cannot think of anything else here. |
On the matter of alternative labels, [0] contains some examples on how to use them more broadly in defining alternatives for an entity. [0] http://sandbox.semantic-mediawiki.org/wiki/Triacylglycerol_lipase |
This PR is made in reference to: #1865
This PR addresses or contains:
$GLOBALS['smwgDVFeatures']
addsSMW_DV_PPLB
to support the use of preferred property labels andSMW_DV_PROV_LHNT
to output a p hint marker on properties that use a preferred labelThis PR includes: