How to generate all triples that fit a particular node type or/and edge type using SPARQL query?

前端 未结 1 1387
-上瘾入骨i
-上瘾入骨i 2021-01-25 23:06

It is a follow up question to :

How to list and count the different types of node and edge entities in the graph data using SPARQL query?

So assuming I have the

1条回答
  •  一整个雨季
    2021-01-25 23:45

    I think what you're looking for is

    construct {   
      ?paper :isWrittenBy ?author .
      ?paper :isCitedBy ?paper2
    }
    where {
      ?paper :isWrittenBy ?author .
      ?paper :isCitedBy ?paper2
    }
    

    The spec section on construct queries might be a helpful reference.

    0 讨论(0)
提交回复
热议问题