Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Find all instances of baseType affiliated with virtualOrganization organization, returns a table with a column per query variable defined in property configuration above

...

No Format
GET [http://harvard.qa.eagle-i.net/i/0000012e-5480-32e6-55da-381e80000000?forceXML]

Getting info about After getting the main resource, the embedded resources:Assume need to be processed. Assume main resource has uri http://harvard.eagle-i.net/123

...

No Format
PREFIX eiapp: <[http://eagle-i.org/ont/app/1.0/]>
SELECT
?embeddedResourceUri
WHERE {
<http://harvard.eagle-i.net/123> ?anyProperty ?embeddedResourceUri .
?embeddedResourceUri a ?type .
?type eiapp:inClassGroup eiapp:ClassGroup_EmbeddedResourceType .
}

Iterate To obtain the embedded resource's details, iterate over this list and do a GET as with the main resource.

...

No Format
PREFIX ei: <http://purl.obolibrary.org/obo/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT
?filterValueUri
?filterValueLabel

WHERE {
     ?resourceUri a <${baseType}> .
     ?resourceUri ei:ERO_0000070 <${virtualOrganizationorganization}> .
     ?resource <${fp1}> ?filterValueUri .
     ?filterValueUri rdfs:label ?filterValueLabel .
}

...

No Format
PREFIX ei: <[http://purl.obolibrary.org/obo/]>
PREFIX rdfs: <[http://www.w3.org/2000/01/rdf-schema#]>

SELECT
?filterValueUri
?filterValueLabel

WHERE {
?resourceUri a <${baseType}> .
?resourceUri ei:ERO_0000070 <${virtualOrganizationorganization}> .
?resource <${ep1}> ?embeddedResource .
?embeddedResource <${ip1}> ?filterValueUri .
?filterValueUri rdfs:label ?filterValueLabel .
}

...

Get the filtered dataset

First part is identical to unfiltered query, then conditions are added as triple patterns;
Assume filterValueUrix is the filter value selected by the user, for each filter property, e.g. filterValueUri1 for fp1
(if only one filter is selected, add only that triple pattern/triple pattern group)

No Format
PREFIX ei: <[http://purl.obolibrary.org/obo/]>
PREFIX eiapp: <[http://eagle-i.org/ont/app/1.0/]>
PREFIX rdfs: <[http://www.w3.org/2000/01/rdf-schema#]>

SELECT
?resourceUri
?resourceLabel
?resourceDescription
?lp1Value
?op1ValueLabel
?op1ValueUri
?op2ValueLabel
?op2ValueUri

WHERE {
?resourceUri a <${baseType}> .
?resourceUri ei:ERO_0000070 <${virtualOrganizationorganization}> .
?resourceUri rdfs:label ?resourceLabel .
OPTIONAL {
?resourceUri eiapp:resource_description ?resourceDescription .
?resourceUri <${lp1}> ?lp1Value .
?resourceUri <${op1}> ?op1ValueUri . ?op1ValueUri rdfs:label ?op1ValueLabel .
?resourceUri <${op2}> ?op2ValueUri . ?op2ValueUri rdfs:label ?op2ValueLabel .
}

?resourceUri <${fp1}> <${filterValueUri1}> .
?resourceUri <${fp2}> <${filterValueUri2}> .

?resourceUri <${ep1}> ?embeddedResource1 .
?embeddedResource1 <${ip1}> <${filterValueUriIndirect1}> .

?resourceUri <${ep2}> ?embeddedResource2 .
?embeddedResource2 <${ip2}> <${filterValueUriIndirect2}> .
}

...