[对应示例]λ-算子、λ-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

自己写的,,如果有错,请指正;如果觉得还行,请点赞!谢谢!

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