Skip to content

Commit

Permalink
[#294] Changed example queue to be easier to understand
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgenii Grigorev committed Jan 23, 2025
1 parent f3888f0 commit f50b0d2
Showing 1 changed file with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@prefix kbss-module: <http://onto.fel.cvut.cz/ontologies/lib/module/> .
@prefix km-ac-wcv: <http://onto.fel.cvut.cz/ontologies/lib/module/apply-construct-with-chunked-values/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix spkpis: <http://onto.fel.cvut.cz/ontologies/safety-performance-kpis/> .
@prefix airports: <http://onto.fel.cvut.cz/ontologies/airports/> .
@prefix sm: <http://topbraid.org/sparqlmotion#> .
@prefix sml: <http://topbraid.org/sparqlmotionlib#> .
@prefix sp: <http://spinrdf.org/sp#> .
Expand All @@ -21,25 +21,22 @@ kbss-module:apply-construct-with-chunked-values rdf:type sm:Module.
SELECT ?airport ?city
WHERE {
VALUES (?airport ?city) {
( "CHO" "Charlottesville" )
( "RIC" "Richmond" )
( "LYH" "Lynchburg" )
( <www.example.org/airports/CHO> "Charlottesville" )
( <www.example.org/airports/RIC> "Richmond" )
( <www.example.org/airports/LYH> "Lynchburg" )
}
}
""" ;
] ;
sml:constructQuery [
a sp:Construct ;
sp:text """# 1 - construct :has-next-trail-point relation
PREFIX spkpis: <http://onto.fel.cvut.cz/ontologies/safety-performance-kpis/> # TODO support prefixes
sp:text """# 1 - construct airport ordering
PREFIX airports: <http://onto.fel.cvut.cz/ontologies/airports/>
CONSTRUCT {
?timePoint__previous spkpis:has-next-trail-point ?timePoint .
?airport__previous airports:is-before-airport ?airport .
} WHERE {
#${VALUES}
FILTER(?trail__previous = ?trail)
}""" ;
] ;
sml:replace true ;
Expand Down

0 comments on commit f50b0d2

Please sign in to comment.