What would be the xpath query to find all child nodes with a specific attribute value, but starting from a node with a specific attribute value?
This is kind of rela
$xpath->query("//*[@rdf:about='http://rdfs.org/sioc/ns#']/following-sibling::*/@rdf:about");
With your sample script, outputs URLs starting/ending with:
http://rdfs.org/sioc/ns#Community http://rdfs.org/sioc/ns#Container ... http://rdfs.org/sioc/ns#reference http://rdfs.org/sioc/ns#subject