-
Notifications
You must be signed in to change notification settings - Fork 15
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
full processing of registryLink, including RIs #300
Comments
@margaretha this is one of the commits I mentioned as needing your eye for a check if everything is idiomatic, etc. For example, I've noticed we have a conflict of naming styles and I tried to adjust to your practice (so I used $registry-links instead of $registryLinks or $registry_links; the last one being my favourite but I think no one uses that any longer, so I usually go for the Java style). But I'm a bit afraid that I have let javaStyled naming slip in, at a few places, elsewhere... :-\ |
In order to be more precise about registryLink, two examples follow. <centre id="ZIM" deposition="1">
<name>ZIM Centre for Information Modelling</name>
<registryLink registry="CLARIN" uri="https://centres.clarin.eu/centre/65"/>
<nodeInfo>
<ri status="B-centre">CLARIN</ri>
</nodeInfo>
</centre> First, a simple one, with a minimal modification of the <centre id="CLARIN-CH" deposition="1">
<name>CLARIN Switzerland</name>
<registryLink registry="CLARIN" uri="https://centres.clarin.eu/centre/80" label="CLARIN-CH-LiRI"/>
<registryLink registry="CLARIN" uri="https://centres.clarin.eu/centre/81" label="CLARIN-CH-LaRS"/>
<nodeInfo>
<ri status="B-centre">CLARIN</ri>
</nodeInfo>
</centre> The recommendations for CLARIN-CH put two centres onto a single list, because, from the perspective of the SIS, these centres share everything except their CLARIN registry link and the associated name. Partial visualisation logic is added in the commit linked above: it produces a list if there is more than one registryLink, and if the optional attribute What remains to be done is possibly:
Note that points (1) and (2) are, for the time being, moot. |
A variant of (3): |
Update: a registry for Text+ has been created, link follows shortly... |
Some of the cases that would need to be enriched with an indirection mechanism, to count centres as two (or more) depending on the number of labelled In declare variable $recommendation:centres := collection('/db/apps/clarin/data/recommendations')/recommendation; In declare function cm:count-number-of-centres-with-recommendations($centres) {
let $centre-with-recommendations :=
for $c in $centres
let $recommendations := cm:get-recommendations(data($c/@id))
let $numOfRecommendations := count($recommendations/formats/format)
return
if ($numOfRecommendations > 0)
then
1
else
0
return
sum($centre-with-recommendations)
}; |
I have turned
<a>
intoregistryLink
with some extra attributes, and while this is now handled for multiple links to the same registry, in a single RI (commit forthcoming), we need to extend this to cases where a centre is listed by more than one RI.This is not so distant; for now, I was simply unable to locate Text+ or DARIAH centre/repository registries, or I would have added references to them where appropriate.
The text was updated successfully, but these errors were encountered: