-
-
Notifications
You must be signed in to change notification settings - Fork 499
DCAT updates for contacts and distributions #8992
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
base: main
Are you sure you want to change the base?
Changes from all commits
5d83b23
a847f7c
2b20cfc
fd0ce3b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,6 +110,15 @@ | |
</foaf:page> | ||
</xsl:template> | ||
|
||
<xsl:template mode="iso19115-3-to-dcat" | ||
match="mdb:distributionInfo/mrd:MD_Distribution/mrd:distributionFormat"> | ||
<dcat:distribution> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unless I'm really wrong, this element will be invalid. See https://semiceu.github.io/DCAT-AP/releases/3.0.0/#Distribution, access URL is required. I think what @fxprunayre meant is to modify the existing template to process the online resources, to use the transferOptions format if exists, otherwise use the distribution ones as you did in the original code.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks a lot ! We did not know about it. Back to draft / analysis, ;-) ! |
||
<dcat:Distribution> | ||
<xsl:apply-templates mode="iso19115-3-to-dcat-distribution" select="*/mrd:formatSpecificationCitation"/> | ||
</dcat:Distribution> | ||
</dcat:distribution> | ||
</xsl:template> | ||
|
||
<!-- | ||
RDF Property: dcat:distribution | ||
Definition: An available distribution of the dataset. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cmangeat can you explain this change?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as individuals do not carry a cit:name they will never be taken into account when for-each-group.
indeed, when grouping by something empty (such as cit:name for an individual), it is not looping, cf. group-by-expression.
the workaround explained here can be used.
(this said, if the purpose of the group by is to avoid an organisation to be returned redundantly, it seems that it does not work (iso19115-3-to-dcat-agent is called many times), as there is no need to change 'individualDoesNotCarryACitName' by generate-id() when many contacts (individual not from an org): with 'individualDoesNotCarryACitName' static, every contact are returned. If of use (not sure), could be better to simply change for-each-group by for-each and remove group-by ?).