Sparql - Applying limiting criteria to predicates

后端 未结 2 2047
暖寄归人
暖寄归人 2020-12-21 07:32

I\'m fairly new to RDF / Sparql, so apologies for any incorrect terminology, and also for the fairly terrible example that follows:

Given the following RDF dataset:<

2条回答
  •  失恋的感觉
    2020-12-21 08:18

    Here's an example using SPARQL that has been deprecated from the spec (for reasons I never understood) but remains supported in Virtuoso (which will be the case for the unforseeable future)

    PREFIX e: 
    PREFIX foaf:  
    
    SELECT *
    FROM 
    {
       foaf:knows{2} ?target .
      ?target a e:Freemason .
    }
    

    Live Links:

    1. Query Solution
    2. Query Definition

提交回复
热议问题