@comunica/actor-dereference-rdf-parse 4.2.0 → 4.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,7 +38,7 @@ class ActorDereferenceRdfParse extends bus_dereference_rdf_1.ActorDereferenceRdf
38
38
  super(args);
39
39
  }
40
40
  async getMetadata(dereference) {
41
- return { baseIRI: dereference.url };
41
+ return { baseIRI: dereference.baseIRI ?? dereference.url };
42
42
  }
43
43
  }
44
44
  exports.ActorDereferenceRdfParse = ActorDereferenceRdfParse;
@@ -1 +1 @@
1
- {"version":3,"file":"ActorDereferenceRdfParse.js","sourceRoot":"","sources":["ActorDereferenceRdfParse.ts"],"names":[],"mappings":";;;AAEA,uEAAoE;AAGpE;;GAEG;AACH,MAAa,wBAAyB,SAAQ,yCAAmB;IAC/D;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,YAAmB,IAA8B;QAC/C,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,WAAW,CAAC,WAAoC;QAC3D,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,GAAG,EAAE,CAAC;IACtC,CAAC;CACF;AApCD,4DAoCC","sourcesContent":["import type { IActorDereferenceOutput } from '@comunica/bus-dereference';\nimport type { IActorDereferenceRdfArgs } from '@comunica/bus-dereference-rdf';\nimport { ActorDereferenceRdf } from '@comunica/bus-dereference-rdf';\nimport type { IActionRdfParseMetadata } from '@comunica/bus-rdf-parse';\n\n/**\n * A comunica Parse Dereference RDF Actor.\n */\nexport class ActorDereferenceRdfParse extends ActorDereferenceRdf {\n /**\n * @param args - @defaultNested {{\n * \"ttl\": \"text/turtle\",\n * \"turtle\": \"text/turtle\",\n * \"shaclc\": \"text/shaclc\",\n * \"shc\": \"text/shaclc\",\n * \"shaclce\": \"text/shaclc-ext\",\n * \"shce\": \"text/shaclc-ext\",\n * \"nt\": \"application/n-triples\",\n * \"ntriples\": \"application/n-triples\",\n * \"nq\": \"application/n-quads\",\n * \"nquads\": \"application/n-quads\",\n * \"rdf\": \"application/rdf+xml\",\n * \"rdfxml\": \"application/rdf+xml\",\n * \"owl\": \"application/rdf+xml\",\n * \"n3\": \"text/n3\",\n * \"trig\": \"application/trig\",\n * \"jsonld\": \"application/ld+json\",\n * \"json\": \"application/json\",\n * \"html\": \"text/html\",\n * \"htm\": \"text/html\",\n * \"xhtml\": \"application/xhtml+xml\",\n * \"xht\": \"application/xhtml+xml\",\n * \"xml\": \"application/xml\",\n * \"svg\": \"image/svg+xml\",\n * \"svgz\": \"image/svg+xml\"\n * }} mediaMappings\n */\n public constructor(args: IActorDereferenceRdfArgs) {\n super(args);\n }\n\n public async getMetadata(dereference: IActorDereferenceOutput): Promise<IActionRdfParseMetadata> {\n return { baseIRI: dereference.url };\n }\n}\n\nexport interface IActorDereferenceRdfParseArgs extends IActorDereferenceRdfArgs {\n\n}\n"]}
1
+ {"version":3,"file":"ActorDereferenceRdfParse.js","sourceRoot":"","sources":["ActorDereferenceRdfParse.ts"],"names":[],"mappings":";;;AAEA,uEAAoE;AAGpE;;GAEG;AACH,MAAa,wBAAyB,SAAQ,yCAAmB;IAC/D;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,YAAmB,IAA8B;QAC/C,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,WAAW,CAAC,WAAoC;QAC3D,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,OAAO,IAAI,WAAW,CAAC,GAAG,EAAE,CAAC;IAC7D,CAAC;CACF;AApCD,4DAoCC","sourcesContent":["import type { IActorDereferenceOutput } from '@comunica/bus-dereference';\nimport type { IActorDereferenceRdfArgs } from '@comunica/bus-dereference-rdf';\nimport { ActorDereferenceRdf } from '@comunica/bus-dereference-rdf';\nimport type { IActionRdfParseMetadata } from '@comunica/bus-rdf-parse';\n\n/**\n * A comunica Parse Dereference RDF Actor.\n */\nexport class ActorDereferenceRdfParse extends ActorDereferenceRdf {\n /**\n * @param args - @defaultNested {{\n * \"ttl\": \"text/turtle\",\n * \"turtle\": \"text/turtle\",\n * \"shaclc\": \"text/shaclc\",\n * \"shc\": \"text/shaclc\",\n * \"shaclce\": \"text/shaclc-ext\",\n * \"shce\": \"text/shaclc-ext\",\n * \"nt\": \"application/n-triples\",\n * \"ntriples\": \"application/n-triples\",\n * \"nq\": \"application/n-quads\",\n * \"nquads\": \"application/n-quads\",\n * \"rdf\": \"application/rdf+xml\",\n * \"rdfxml\": \"application/rdf+xml\",\n * \"owl\": \"application/rdf+xml\",\n * \"n3\": \"text/n3\",\n * \"trig\": \"application/trig\",\n * \"jsonld\": \"application/ld+json\",\n * \"json\": \"application/json\",\n * \"html\": \"text/html\",\n * \"htm\": \"text/html\",\n * \"xhtml\": \"application/xhtml+xml\",\n * \"xht\": \"application/xhtml+xml\",\n * \"xml\": \"application/xml\",\n * \"svg\": \"image/svg+xml\",\n * \"svgz\": \"image/svg+xml\"\n * }} mediaMappings\n */\n public constructor(args: IActorDereferenceRdfArgs) {\n super(args);\n }\n\n public async getMetadata(dereference: IActorDereferenceOutput): Promise<IActionRdfParseMetadata> {\n return { baseIRI: dereference.baseIRI ?? dereference.url };\n }\n}\n\nexport interface IActorDereferenceRdfParseArgs extends IActorDereferenceRdfArgs {\n\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comunica/actor-dereference-rdf-parse",
3
- "version": "4.2.0",
3
+ "version": "4.4.1",
4
4
  "description": "A parse dereference-rdf actor",
5
5
  "lsd:module": true,
6
6
  "license": "MIT",
@@ -42,9 +42,9 @@
42
42
  "build:components": "componentsjs-generator"
43
43
  },
44
44
  "dependencies": {
45
- "@comunica/bus-dereference": "^4.2.0",
46
- "@comunica/bus-dereference-rdf": "^4.2.0",
47
- "@comunica/bus-rdf-parse": "^4.2.0"
45
+ "@comunica/bus-dereference": "^4.4.1",
46
+ "@comunica/bus-dereference-rdf": "^4.4.1",
47
+ "@comunica/bus-rdf-parse": "^4.4.0"
48
48
  },
49
- "gitHead": "94e1eacab069551590cc250074b36bce08720c4c"
49
+ "gitHead": "c5cc36caf88da31173a0969a7da88cadb7f469ac"
50
50
  }