Dreams:report: Difference between revisions

→‎Patterns: Removed quotation mark
(→‎Patterns: Removed quotation mark)
Line 137: Line 137:
     OPTIONAL { ?pattern dreamst:P47 ?subject_text }
     OPTIONAL { ?pattern dreamst:P47 ?subject_text }
     BIND(COALESCE(?subject, ?subject_text, "") AS ?subject)
     BIND(COALESCE(?subject, ?subject_text, "") AS ?subject)
     BIND(CONCAT(COALESCE(?subject_label, ""), ' ("', ?subject_text, '")') AS ?subjectLabel)
     BIND(CONCAT(COALESCE(?subject_label, ""), ' (', ?subject_text, ')') AS ?subjectLabel)
      
      
     OPTIONAL {
     OPTIONAL {
Line 147: Line 147:
     OPTIONAL { ?pattern dreamst:P49 ?object_text }
     OPTIONAL { ?pattern dreamst:P49 ?object_text }
     BIND(COALESCE(?object, ?object_text) AS ?object)
     BIND(COALESCE(?object, ?object_text) AS ?object)
     BIND(CONCAT(COALESCE(?object_label, ""), ' ("', ?object_text, '")') AS ?objectLabel)
     BIND(CONCAT(COALESCE(?object_label, ""), ' (', ?object_text, ')') AS ?objectLabel)


     OPTIONAL {
     OPTIONAL {
Line 157: Line 157:
     OPTIONAL { ?pattern dreamst:P54 ?recipient_text }
     OPTIONAL { ?pattern dreamst:P54 ?recipient_text }
     BIND(COALESCE(?recipient, ?recipient_text) AS ?recipient)
     BIND(COALESCE(?recipient, ?recipient_text) AS ?recipient)
     BIND(CONCAT(COALESCE(?recipient_label, ""), ' ("', ?recipient_text, '")') AS ?recipientLabel)
     BIND(CONCAT(COALESCE(?recipient_label, ""), ' (', ?recipient_text, ')') AS ?recipientLabel)
    
    
     OPTIONAL { ?pattern dreamst:P18 ?quote . }
     OPTIONAL { ?pattern dreamst:P18 ?quote . }