Chris Knott
05/23/2022, 6:47 PMChris Knott
05/23/2022, 6:57 PM@[C:\Users\Chris\my excel file.xls]
   ![MS Excel Workbook]
   #created:01/03/2019  #filesize:120kb
   #worksheet: @[Sheet 1]
   #worksheet: @[Sheet 2]
   #worksheet: @[Sheet 3]Kartik Agaram
Chris Knott
05/24/2022, 6:22 AM?var@Chris
  !Person
  #email:[email protected]
  #email:[email protected]
  #sent-emails:?[Chris's sent emails]
?[Chris's sent emails]
  !Email     <- filter to !Email's
  ?[Chris email address] = @Chris #email
  #from:?[Chris email address] <-- filter using var
?[Chris email recipients]
  ?addr = ?[Chris's sent emails] #to
  #email: ?addrJack Rusher
05/24/2022, 7:14 AM@prefix : <<http://example.org/elements>> .                                                                              
<<http://en.wikipedia.org/wiki/Helium>>                                                                                  
    :atomicNumber 2 ;               # xsd:integer                                                                      
    :atomicMass 4.002602 ;          # xsd:decimal                                                                      
    :specificGravity 1.663E-4 .     # xsd:doubleChris Knott
05/24/2022, 7:47 AM#sibling: @Bartmatch (v_: Entity {{name:"Bart"}})
    match p_v = ((v:Entity)-[:IMPLIES*0..]->(v_))
    with distinct v, [m in nodes(p_v) where 'Context' in labels(m)] as contexts
    match (k_:Attribute {name:"sibling"})
    match p_k = ((k:Attribute)-[:IMPLIES*0..]->(k_))
    with distinct v, k, [m in nodes(p_k) where 'Context' in labels(m)]+contexts as contexts
    match (k)-[:VALUE]->(c:Context)-[:VALUE]->(v),
                        (c)-[:CONTEXT]->(n:Entity)
    with distinct n, contexts
    where size(contexts) = 0 or 
    all(c in contexts where exists((c)-[:CONTEXT]->()<-[:IMPLIES*0..]-()<-[:CATEGORY|ATTRIBUTE*0..1]-()<-[:IMPLIES*0..]-(n)))
     
    return distinct nChris Knott
05/24/2022, 8:03 AMKonrad Hinsen
05/24/2022, 8:12 AMChris Knott
05/24/2022, 8:30 AM@Bart@[Bart Simpson]@[My front door]
   !Door
   #closed
@[My garden door]
   !Door
   #not-open
@[Half open interval [0, 1)]
   ![Subset of the Reals]
   #not-open #not-closed
!Door
   #not-open = #closed#closed#not-open = #closed!Set!DoorJack Rusher
05/24/2022, 8:39 AM(query `{:select [?siblingLabel]
         :where  [[~(entity "Bart Simpson") ~(wdt :sibling) ?sibling]]})
;;=>
[{:siblingLabel "Lisa Simpson"}
 {:siblingLabel "Maggie Simpson"}
 {:siblingLabel "Hugo Simpson"}]Chris Knott
05/24/2022, 8:41 AMChris Knott
05/24/2022, 8:43 AMKartik Agaram
Jack Rusher
05/24/2022, 3:51 PMJack Rusher
05/24/2022, 3:52 PM