[對應示例]λ-算子、λ-DCS、SPARQL、Cypher

舉例:people who had children born in Seattle 對應的

λ-算子:

λx.∃y.Chilren( x , y ) ∧ PlaceOfBirth( y , Seattle )  

λ-DCS:

Chilren.PlaceOfBirth.Seattle

SPARQL:

prefix ns: <神馬神馬>
select ?s1
where {
    ?s1    ns: Chilren   ?s2,
    ?s2    ns: PlaceOfBirth   ns: Seattle ,
}

Cypher:

match (p)-[:Chilren]->(q)-[:PlaceOfBirth]->(:Place {name:'Seattle '}) return p

自己寫的,,如果有錯,請指正;如果覺得還行,請點贊!謝謝!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章