Skip to content

Commit

Permalink
[Fix kbss-cvut/record-manager-ui#185] Fix exported excel is empty in …
Browse files Browse the repository at this point in the history
…operator

- make fha question and section optional
  • Loading branch information
kostobog committed Jul 17, 2024
1 parent 550152b commit ec8c012
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/main/resources/query/find-raw-records.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ SELECT ?r (?r as ?uri)
GRAPH ?r {
?r rm:has-question ?f.
?f doc:has_related_question ?s1.
?f doc:has_related_question ?s2.
FILTER(?s2 != ?s1)
?s2 doc:has_related_question ?fhaEventQ.
?fhaEventQ form:has-question-origin ?fhaEventQuestionOrigin.
FILTER(contains(str(?fhaEventQuestionOrigin), "http://vfn.cz/ontologies/ava-study/model/fha-event"))

OPTIONAL{
?f doc:has_related_question ?s2.
FILTER(?s2 != ?s1)
?s2 doc:has_related_question ?fhaEventQ.
?fhaEventQ form:has-question-origin ?fhaEventQuestionOrigin.
FILTER(contains(str(?fhaEventQuestionOrigin), "http://vfn.cz/ontologies/ava-study/model/fha-event"))
}

?s1 doc:has_related_question ?FUSq.
?FUSq form:has-question-origin avamod:fuselage-no.
Expand Down

0 comments on commit ec8c012

Please sign in to comment.