Compare models for identity, but with variables? Construct with minus?

前端 未结 2 618
长发绾君心
长发绾君心 2021-01-23 06:36

My team is implementing a variation of Ceusters\'s Referent Tracking. In our implementation, the original URI for an entity can be changed (to something containing a UUID), alth

2条回答
  •  我在风中等你
    2021-01-23 07:02

    Once again bailed out by a comment from @AKSW, who doesn't seem to be especially obsessed with earning reputation points.

    This CONSTRUCT, with an embedded SELECT, gets all triples from my model, depleted of any triples in the MINUS block, even when they contain variables. I'm pretty sure I can flesh out the MINUS block and finish my task.

    PREFIX  rdf:  
    CONSTRUCT 
      { 
        ?s ?p ?o .
      }
    WHERE
      { SELECT  ?s ?p ?o
        WHERE
          { { ?s  ?p  ?o }
            MINUS
              { ?s  rdf:type  ?o }
          }
      }
    

提交回复
热议问题