You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@marmotta.apache.org by "Chris Beer (JIRA)" <ji...@apache.org> on 2014/05/19 18:40:38 UTC

[jira] [Created] (MARMOTTA-504) LDPath should have a null-coalescing selector

Chris Beer created MARMOTTA-504:
-----------------------------------

             Summary: 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
            Reporter: Chris Beer


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)