You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to retrieve attributes of an item that I need to reach by way of a blank node:
var resource = store.statementsMatching($rdf.sym(key), VRA("placeOfPublication") , undefined); for (var i=0; i < resource.length; i++) { res = resource[i]; var locName = store.statementsMatching($rdf.sym(res.object.value), undefined, undefined); }
This would be used to traverse data that looks like this in xml/rdf:
The first pass through returns blank nodes. For other similar queries (that don't return blank nodes) I am using the result of the first call to drill down to the information I need. For this particular section in my data, that won't work. I'm wondering if there's a more depth-first approach to this sort of query, and also how to get data associated with these specific blank nodes using wildcards.
Example of BlankNode:
BlankNode {id: 19, value: "19"}
The text was updated successfully, but these errors were encountered:
To get email-addresses from a Solid Pod i also first retrieved the blank nodes that were objects, and then used them as subjects in the next query (using two consecutive forEach calls):
I'm trying to retrieve attributes of an item that I need to reach by way of a blank node:
var resource = store.statementsMatching($rdf.sym(key), VRA("placeOfPublication") , undefined); for (var i=0; i < resource.length; i++) { res = resource[i]; var locName = store.statementsMatching($rdf.sym(res.object.value), undefined, undefined); }
This would be used to traverse data that looks like this in xml/rdf:
<vra:placeOfPublication> <rdf:Description> <rdf:type rdf:resource="http://purl.org/vra/Place"/> <vra:containedIn> <rdf:Description rdf:about="http://vocab.getty.edu/tgn/7014406"> <rdf:type rdf:resource="http://purl.org/vra/Place"/> <vra:name>Philadelphia</vra:name> </rdf:Description> </vra:containedIn> <vra:name>published: Philadelphia, Pa.</vra:name> <vra:description/> </rdf:Description> </vra:placeOfPublication>
The first pass through returns blank nodes. For other similar queries (that don't return blank nodes) I am using the result of the first call to drill down to the information I need. For this particular section in my data, that won't work. I'm wondering if there's a more depth-first approach to this sort of query, and also how to get data associated with these specific blank nodes using wildcards.
Example of BlankNode:
BlankNode {id: 19, value: "19"}
The text was updated successfully, but these errors were encountered: