Triples sorted are not all of the same subject
Example subject:
<http://viaf.org/viaf/100042246> <http://schema.org/name> "Maria Helena dos Santos Santana"@en .
<http://viaf.org/viaf/100042246> <http://schema.org/familyName> "Santana" .
<http://viaf.org/viaf/100042246> <http://schema.org/sameAs> <http://isni.org/isni/0000000070032818> .
<http://viaf.org/viaf/100042246/> <http://xmlns.com/foaf/0.1/primaryTopic> <http://viaf.org/viaf/100042246> .
<http://viaf.org/viaf/100042246> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Person> .
<http://viaf.org/viaf/100042246/> <http://rdfs.org/ns/void#inDataset> <http://viaf.org/viaf/data> .
<http://viaf.org/viaf/100042246> <http://schema.org/name> "Maria Helena dos Santos Santana"@pt-PT .
<http://viaf.org/viaf/100042246> <http://purl.org/dc/terms/identifier> "100042246" .
<http://viaf.org/viaf/100042246/> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2006/gen/ont#InformationResource> .
<http://viaf.org/viaf/100042246> <http://www.w3.org/2004/02/skos/core#prefLabel> "Maria Helena dos Santos Santana"@pt-PT .
<http://viaf.org/viaf/100042246> <http://schema.org/givenName> "Maria Helena dos Santos" .
<http://viaf.org/viaf/100042246/> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Document> .
Note that some subjects end with /
while others do not. The ones with /
are triples about the document which describes the item and not about the item itself. They should be excluded from the dump and not sorted in. Metafacture creates several subjects in its output:
{"@id":"http://viaf.org/viaf/100045296/","rdf:type":["http://www.w3.org/2006/gen/ont#InformationResource","http://xmlns.com/foaf/0.1/Document"]}
{"@id":"http://viaf.org/viaf/100045470/","rdf:type":"http://xmlns.com/foaf/0.1/Document"}
{"@id":"http://viaf.org/viaf/100045470/","rdf:type":"http://www.w3.org/2006/gen/ont#InformationResource","foaf:primaryTopic":"http://viaf.org/viaf/100045470","void:inDataset":"http://viaf.org/viaf/data"}esBulkActionINDEXesDocTypeNameviaf-placesesIndexNameviaf-places