Skip to content

Tests do only work on individual Paths #6

Description

@GoogleCodeExporter
Currently Test such as [@en] do only work on individual paths. It is not 
possible to create an union or intersection and than apply a the test that.

Adding support for that would allow for more simple LD Path statements and 
improve performance in some cases (Applying filter to individual elements might 
reduce the number of items to build the union/intersection; Applying the filter 
to the union/intersection reduces the number of times the filter must be 
applied).

e.g. 

    people = (* | dct:subject/^dct:subject | dct:subject/^skos:broader/^dct:subject)[rdf:type is dbp-ont:Person])

must be currently written as

   people = (*[rdf:type is dbp-ont:Person]) | (dct:subject/^dct:subject[rdf:type is dbp-ont:Person]) | (dct:subject/^skos:broader/^dct:subject[rdf:type is dbp-ont:Person]) :: xsd:anyURI;

Namespaces used in this Example:

    @prefix dct : <http://purl.org/dc/terms/> ;
    @prefix dbp-ont : <http://dbpedia.org/ontology/> ;
    @prefix skos : <http://www.w3.org/2004/02/skos/core#> ;


Original issue reported on code.google.com by rupert.w...@gmail.com on 14 Dec 2011 at 7:54

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions