[
https://issues.apache.org/jira/browse/MARMOTTA-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chris Beer closed MARMOTTA-504.
-------------------------------
Resolution: Not a Problem
Fix Version/s: (was: 3.3.0)
> LDPath should have a null-coalescing selector
> ---------------------------------------------
>
> Key: MARMOTTA-504
> URL: https://issues.apache.org/jira/browse/MARMOTTA-504
> Project: Marmotta
> Issue Type: New Feature
> Components: LDPath
> Affects Versions: 3.2.1
> Reporter: Chris Beer
> Assignee: Jakob Frank
>
> Several LDPath programs I am working on would benefit from a null-coalescing
> selector (where the left-most existing match is returned by the selector),
> e.g. when there is a schema-defined titled type, but falling back to a more
> generic type would be better than no value at all, e.g.
> {code}
> name = madsrdf:authoritativeLabel || foaf:name || skos:prefLabel ::
> xsd:string;
> {code}
> The existing Union operator does deduplicate values, but in my use cases, the
> values are possibly not identical.
> Here's a pull request to add the selector:
> https://github.com/apache/marmotta/pull/5
--
This message was sent by Atlassian JIRA
(v6.2#6252)