Active
Project:
SPARQL Views
Version:
7.x-2.x-dev
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 May 2011 at 00:31 UTC
Updated:
6 Jul 2011 at 14:48 UTC
Jump to comment: Most recent
If there was a way to create variable relationships (built on unknown fields) that could be used to join to entities of Unknown or Variable relationship. ex:
from the vivo project (vivoweb.org)
the end resulting query would look like
select ?personName
where {
?person rdfs:label ?personName;
rdf:type foaf:person;
?p_to_r ?role.
?role rdf:type core:Role;
core:roleIn ?grant.
?grant rdfs:label "VIVO: Enabling National Networking of Scientists"
Comments
Comment #1
svwilliams commentedWhile this might be something to include in the user interface later, this seems to already be handled by the system. You just create a Sparql View Resoure Field where the rdf mapping is a variable.
Comment #2
Anonymous (not verified) commentedClever solution, thanks for posting it!
Comment #3
netsensei commentedI'm wondering if this approach could solve [http://drupal.org/node/1111702] for me...
Is it possible to elaborate a little bit more? I'm a bit puzzled here. I've created an entity resource, added a few fields with an RDF mapping and created a view. Do I have to add an extra field to my resource without a mapping to a vocabulary? And use that in my view?
Comment #4
Anonymous (not verified) commentedIIRC, he created a mapping that was just "?p". This mean that he could return all objects for a subject.