Skip to content

Commit a7122d6

Browse files
committed
Fix rdf:version being emitted as triple
1 parent 4a55f6f commit a7122d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/RdfXmlParser.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ export class RdfXmlParser extends Transform implements RDF.Sink<EventEmitter, RD
270270
const attribute = tag.attributes[attributeKey];
271271
if (attribute.uri === RdfXmlParser.RDF && attribute.local === 'version') {
272272
this.setVersion(activeTag, attribute.value);
273+
continue;
273274
} else if (parentTag && attribute.uri === RdfXmlParser.RDF) {
274275
switch (attribute.local) {
275276
case 'about':
@@ -446,6 +447,7 @@ while ${attribute.value} and ${activeSubjectValue} where found.`);
446447
const propertyAttribute = tag.attributes[propertyAttributeKey];
447448
if (propertyAttribute.uri === RdfXmlParser.RDF && propertyAttribute.local === 'version') {
448449
this.setVersion(activeTag, propertyAttribute.value);
450+
continue;
449451
} else if (propertyAttribute.uri === RdfXmlParser.RDF) {
450452
switch (propertyAttribute.local) {
451453
case 'resource':

0 commit comments

Comments
 (0)