Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
- PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
- PREFIX dcterms: <http://purl.org/dc/terms/>
- PREFIX foaf: <http://xmlns.com/foaf/0.1/>
- PREFIX schema: <http://schema.org/>
- PREFIX oslc_asset: <http://open-services.net/ns/asset#>
- PREFIX nav: <http://cpgu.kbpm.ru/ns/rm/navigation#>
- PREFIX rm: <http://cpgu.kbpm.ru/ns/rm/rdf#>
- PREFIX rmUserTypes: <http://cpgu.kbpm.ru/ns/rm/user-types#>
- PREFIX cpgu: <http://cpgu.kbpm.ru/ns/rm/cpgu#>
- PREFIX users: <http://cpgu.kbpm.ru/ns/rm/users#>
- PREFIX projects: <http://cpgu.kbpm.ru/ns/rm/projects#>
- PREFIX folders: <http://cpgu.kbpm.ru/ns/rm/folders#>
- PREFIX reqs: <http://cpgu.kbpm.ru/ns/rm/reqs#>
- SELECT DISTINCT ?URI ?identifier ?title ?folder ?description ?creator ?created_on ?modified_on ?modified_by ?type ?format ?status ?difficulty
- WHERE {
- ?URI a rm:ArtifactType .
- ?URI dcterms:identifier ?identifier .
- ?URI dcterms:title ?title .
- ?URI rm:assetFolder ?folder .
- OPTIONAL { ?URI dcterms:description ?description } .
- OPTIONAL { ?URI dcterms:creator ?creator } .
- OPTIONAL { ?URI dcterms:created ?created_on } .
- OPTIONAL { ?URI dcterms:modified ?modified_on } .
- OPTIONAL { ?URI dcterms:modifiedBy ?modified_by } .
- ?URI rdf:type ?type .
- ?URI rm:artifactFormat ?format .
- OPTIONAL { ?URI rm:status ?status } .
- OPTIONAL { ?URI rm:difficulty ?difficulty } .
- ?URI rm:assetFolder <http://cpgu.kbpm.ru/ns/rm/folders#folder1_1> .
- ?URI dcterms:title '''Требование 2 из Н10-10'''^^xsd:string .
- FILTER NOT EXISTS {
- ?subtype ^a ?URI ;
- rdfs:subClassOf ?type .
- FILTER ( ?subtype != ?type )
- }
- # Здесь будут фильтры
- }
- Равенство
- FILTER ( ?identifier = 30010)
- Начинается с
- FILTER ( STRSTARTS(?description, 'Код'))
- Содержит
- FILTER ( CONTAINS(?description, 'товарной'))
- Не содержит
- FILTER ( !CONTAINS(?description, 'Код'))
- Заканчивается на
- FILTER ( STRENDS(?description, 'товара'))
- Существует
- FILTER EXISTS { ?URI dcterms:title ?title }
- Не существует
- FILTER NOT EXISTS { ?URI dcterms:title ?title }
- Любой из
- FILTER ( ?description = 'Код товарной позиции' || ?description = 'Код товарной группы')
- Между
- FILTER("2015-01-01T10:12:16.000Z"^^xsd:dateTime <= ?created_on && ?created_on < "2016-01-01T10:12:16.000Z"^^xsd:dateTime)
- После (включая)
- FILTER(?created_on >= "2014-02-10T10:12:16.000Z"^^xsd:dateTime)
- До (включая)
- FILTER(?created_on <= "2014-02-10T10:12:16.000Z"^^xsd:dateTime)
- Равенство
- FILTER(?created_on = "2014-02-10T10:12:16.000Z"^^xsd:dateTime)
- Не равняется
- FILTER(?created_on != "2014-02-10T10:12:16.000Z"^^xsd:dateTime)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement