[ 
https://issues.apache.org/jira/browse/MARMOTTA-504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14005697#comment-14005697
 ] 

Sergio Fernández commented on MARMOTTA-504:
-------------------------------------------

+1, [~jakob] will have to validate the implementation, but for me looks like a 
very interesting new feature for the language.

> 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
>             Fix For: 3.3.0
>
>
> 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)

Reply via email to