@thomasfosterau/effect-rdf 0.0.0 → 0.1.0
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.
- package/LICENSE +21 -0
- package/README.md +2250 -1
- package/dist/Algebra-CGG4oae3.mjs +433 -0
- package/dist/Algebra-CGG4oae3.mjs.map +1 -0
- package/dist/Algebra-uGsIEOUA.d.mts +446 -0
- package/dist/Ast-CPRZmBvk.mjs +552 -0
- package/dist/Ast-CPRZmBvk.mjs.map +1 -0
- package/dist/Ast-vcw2W-lf.d.mts +827 -0
- package/dist/Bindings-Ck3m7JRC.mjs +249 -0
- package/dist/Bindings-Ck3m7JRC.mjs.map +1 -0
- package/dist/Bindings-DiKpBd7f.d.mts +153 -0
- package/dist/ClientErrors-CpXdFX5u.mjs +128 -0
- package/dist/ClientErrors-CpXdFX5u.mjs.map +1 -0
- package/dist/ClientErrors-D4IZHUM-.d.mts +101 -0
- package/dist/ClientFormats-CXomkXLV.mjs +73 -0
- package/dist/ClientFormats-CXomkXLV.mjs.map +1 -0
- package/dist/ClientFormats-Dm57ZPwR.d.mts +36 -0
- package/dist/Csv2Json-DynEcwCh.mjs +194 -0
- package/dist/Csv2Json-DynEcwCh.mjs.map +1 -0
- package/dist/Csv2Json-aXNVDoXQ.d.mts +40 -0
- package/dist/Csv2Rdf-8maXP6mt.d.mts +41 -0
- package/dist/Csv2Rdf-DuSEkaKE.mjs +161 -0
- package/dist/Csv2Rdf-DuSEkaKE.mjs.map +1 -0
- package/dist/Dataset-BlmlcI7J.mjs +782 -0
- package/dist/Dataset-BlmlcI7J.mjs.map +1 -0
- package/dist/Dataset-DS3ESOcO.d.mts +426 -0
- package/dist/Dataset.d.mts +2 -0
- package/dist/Dataset.mjs +1 -0
- package/dist/Datatype-CxMpamHC.d.mts +212 -0
- package/dist/Datatype-DQvkNkiH.mjs +1001 -0
- package/dist/Datatype-DQvkNkiH.mjs.map +1 -0
- package/dist/Dialect-8ChFj5EX.d.mts +113 -0
- package/dist/Dialect-CzVH38uo.mjs +165 -0
- package/dist/Dialect-CzVH38uo.mjs.map +1 -0
- package/dist/DocumentLoader-D3lZREnB.mjs +346 -0
- package/dist/DocumentLoader-D3lZREnB.mjs.map +1 -0
- package/dist/DocumentLoader-ZUCEVrW5.d.mts +178 -0
- package/dist/DublinCore-AnwqxRx6.mjs +137 -0
- package/dist/DublinCore-AnwqxRx6.mjs.map +1 -0
- package/dist/DublinCore-Dq-tVA5d.d.mts +119 -0
- package/dist/Engine-CYPB3g4h.d.mts +144 -0
- package/dist/Engine-DF8PN7g-.mjs +872 -0
- package/dist/Engine-DF8PN7g-.mjs.map +1 -0
- package/dist/Errors-CMdV1RhU.mjs +37 -0
- package/dist/Errors-CMdV1RhU.mjs.map +1 -0
- package/dist/Errors-u2bDjUeM.d.mts +30 -0
- package/dist/Evaluator-DEsU4d1o.d.mts +50 -0
- package/dist/Evaluator-DOY2-guC.mjs +281 -0
- package/dist/Evaluator-DOY2-guC.mjs.map +1 -0
- package/dist/Exif-CpqniYQd.d.mts +78 -0
- package/dist/Exif-DjkCfEB-.mjs +89 -0
- package/dist/Exif-DjkCfEB-.mjs.map +1 -0
- package/dist/Expression-BIMMvduQ.mjs +230 -0
- package/dist/Expression-BIMMvduQ.mjs.map +1 -0
- package/dist/Expression-W8A9cyX7.d.mts +89 -0
- package/dist/Extract-Bop85jES.mjs +220 -0
- package/dist/Extract-Bop85jES.mjs.map +1 -0
- package/dist/Extract-C_pCvuTC.d.mts +88 -0
- package/dist/Federation-BcNrozc1.d.mts +52 -0
- package/dist/Federation-CHScBkaK.mjs +130 -0
- package/dist/Federation-CHScBkaK.mjs.map +1 -0
- package/dist/Functions-AvjNcId_.mjs +1346 -0
- package/dist/Functions-AvjNcId_.mjs.map +1 -0
- package/dist/Functions-OQJZP-F6.d.mts +111 -0
- package/dist/Generator-C52mmq01.d.mts +50 -0
- package/dist/Generator-D3utCJC7.mjs +205 -0
- package/dist/Generator-D3utCJC7.mjs.map +1 -0
- package/dist/Grammar-CPlSxGH6.mjs +200 -0
- package/dist/Grammar-CPlSxGH6.mjs.map +1 -0
- package/dist/Grammar-CRhnRoCu.d.mts +148 -0
- package/dist/Grammar-D6jZdJQ3.d.mts +169 -0
- package/dist/Grammar-mQ8CgE1M.mjs +258 -0
- package/dist/Grammar-mQ8CgE1M.mjs.map +1 -0
- package/dist/GraphStore-DhUa4nFO.d.mts +45 -0
- package/dist/GraphStore-DvbqwKy1.mjs +212 -0
- package/dist/GraphStore-DvbqwKy1.mjs.map +1 -0
- package/dist/Iri-BB8Ks-BF.d.mts +84 -0
- package/dist/Iri-Cr92gsQV.mjs +232 -0
- package/dist/Iri-Cr92gsQV.mjs.map +1 -0
- package/dist/Iri.d.mts +2 -0
- package/dist/Iri.mjs +1 -0
- package/dist/Isomorphism-B6qTY-xy.d.mts +28 -0
- package/dist/Isomorphism-BmqxhKyJ.mjs +232 -0
- package/dist/Isomorphism-BmqxhKyJ.mjs.map +1 -0
- package/dist/Isomorphism-DInKnWIy.mjs +390 -0
- package/dist/Isomorphism-DInKnWIy.mjs.map +1 -0
- package/dist/Isomorphism-DvSfZXLR.d.mts +37 -0
- package/dist/Isomorphism.d.mts +2 -0
- package/dist/Isomorphism.mjs +1 -0
- package/dist/JsonLd-DOwS2FHg.mjs +2836 -0
- package/dist/JsonLd-DOwS2FHg.mjs.map +1 -0
- package/dist/JsonLd-DobFrQNa.d.mts +242 -0
- package/dist/JsonLdError-C9J-BxfG.mjs +106 -0
- package/dist/JsonLdError-C9J-BxfG.mjs.map +1 -0
- package/dist/JsonLdError-DSOfHkOy.d.mts +43 -0
- package/dist/LanguageTag-BCu8rcmX.d.mts +38 -0
- package/dist/LanguageTag-BcOpMGZ4.mjs +89 -0
- package/dist/LanguageTag-BcOpMGZ4.mjs.map +1 -0
- package/dist/LanguageTag.d.mts +2 -0
- package/dist/LanguageTag.mjs +1 -0
- package/dist/Lexical-Cg0JHrf6.mjs +243 -0
- package/dist/Lexical-Cg0JHrf6.mjs.map +1 -0
- package/dist/Lexical-D3zySYVS.d.mts +163 -0
- package/dist/Manifest-B6xf6mUc.mjs +148 -0
- package/dist/Manifest-B6xf6mUc.mjs.map +1 -0
- package/dist/Manifest-DQUMRBFr.d.mts +98 -0
- package/dist/Mapping-BgG74x3U.d.mts +63 -0
- package/dist/Mapping-Dc1ZGirk.mjs +259 -0
- package/dist/Mapping-Dc1ZGirk.mjs.map +1 -0
- package/dist/Mcp-1DwTTKOK.mjs +48 -0
- package/dist/Mcp-1DwTTKOK.mjs.map +1 -0
- package/dist/Mcp-d-pX9erx.d.mts +25 -0
- package/dist/Message-CK_DGQuu.mjs +95 -0
- package/dist/Message-CK_DGQuu.mjs.map +1 -0
- package/dist/Message-fIvTJSXM.d.mts +49 -0
- package/dist/Metadata-BbffwGDZ.mjs +445 -0
- package/dist/Metadata-BbffwGDZ.mjs.map +1 -0
- package/dist/Metadata-CEt3yc1-.d.mts +901 -0
- package/dist/Metadata-D4HsQNXr.mjs +1273 -0
- package/dist/Metadata-D4HsQNXr.mjs.map +1 -0
- package/dist/Metadata-nzS7QKRj.d.mts +350 -0
- package/dist/Model-DaMmxurZ.d.mts +293 -0
- package/dist/Model-DlPzRYhF.mjs +528 -0
- package/dist/Model-DlPzRYhF.mjs.map +1 -0
- package/dist/N3-BzyV-KIH.mjs +974 -0
- package/dist/N3-BzyV-KIH.mjs.map +1 -0
- package/dist/N3-DSLnonDn.d.mts +100 -0
- package/dist/NQuads-C1VBOJ3-.mjs +117 -0
- package/dist/NQuads-C1VBOJ3-.mjs.map +1 -0
- package/dist/NQuads-FjFZikFg.d.mts +76 -0
- package/dist/NTriples-D-kLSEAf.mjs +120 -0
- package/dist/NTriples-D-kLSEAf.mjs.map +1 -0
- package/dist/NTriples-D34OspfW.d.mts +76 -0
- package/dist/Namespace-ClTUO_ya.d.mts +42 -0
- package/dist/Namespace-DHFIsORd.mjs +75 -0
- package/dist/Namespace-DHFIsORd.mjs.map +1 -0
- package/dist/Namespace.d.mts +2 -0
- package/dist/Namespace.mjs +1 -0
- package/dist/Namespaces-Bz85vpjW.mjs +235 -0
- package/dist/Namespaces-Bz85vpjW.mjs.map +1 -0
- package/dist/Namespaces-C1jW6EDo.d.mts +178 -0
- package/dist/Optimizer-BWWQRQPY.mjs +168 -0
- package/dist/Optimizer-BWWQRQPY.mjs.map +1 -0
- package/dist/Optimizer-DUpUow6k.d.mts +26 -0
- package/dist/Options-BLBGL4HE.mjs +72 -0
- package/dist/Options-BLBGL4HE.mjs.map +1 -0
- package/dist/Options-BommQwP9.d.mts +127 -0
- package/dist/Packet-CA76wVX3.mjs +197 -0
- package/dist/Packet-CA76wVX3.mjs.map +1 -0
- package/dist/Packet-Cy5g6XuW.d.mts +130 -0
- package/dist/Parser-p1Gyr0QN.d.mts +85 -0
- package/dist/Parser-xARsOWXk.mjs +1317 -0
- package/dist/Parser-xARsOWXk.mjs.map +1 -0
- package/dist/Path-B20Yp8KE.mjs +284 -0
- package/dist/Path-B20Yp8KE.mjs.map +1 -0
- package/dist/Path-DRB8e-Zn.d.mts +181 -0
- package/dist/Pdf-B9RZn--8.d.mts +77 -0
- package/dist/Pdf-CKK6dkZn.mjs +89 -0
- package/dist/Pdf-CKK6dkZn.mjs.map +1 -0
- package/dist/PdfA-CUjSuntT.d.mts +109 -0
- package/dist/PdfA-CleOhuL6.mjs +124 -0
- package/dist/PdfA-CleOhuL6.mjs.map +1 -0
- package/dist/Photoshop-CiHo80qV.mjs +233 -0
- package/dist/Photoshop-CiHo80qV.mjs.map +1 -0
- package/dist/Photoshop-udKZ0I3N.d.mts +204 -0
- package/dist/PrefixMap-BHFPDLO-.mjs +103 -0
- package/dist/PrefixMap-BHFPDLO-.mjs.map +1 -0
- package/dist/PrefixMap-BMlXrWNd.d.mts +64 -0
- package/dist/PrefixMap.d.mts +2 -0
- package/dist/PrefixMap.mjs +1 -0
- package/dist/Processor-CMmecFsb.mjs +198 -0
- package/dist/Processor-CMmecFsb.mjs.map +1 -0
- package/dist/Processor-FJPvO0CB.d.mts +435 -0
- package/dist/Protocol-BA7OkNgp.mjs +202 -0
- package/dist/Protocol-BA7OkNgp.mjs.map +1 -0
- package/dist/Protocol-DlSoiIKB.d.mts +108 -0
- package/dist/ProtocolErrors-Ckfejnl6.d.mts +84 -0
- package/dist/ProtocolErrors-czDPVcX5.mjs +129 -0
- package/dist/ProtocolErrors-czDPVcX5.mjs.map +1 -0
- package/dist/Query-D9A6LOpP.mjs +364 -0
- package/dist/Query-D9A6LOpP.mjs.map +1 -0
- package/dist/Query-KqSkTYyG.d.mts +96 -0
- package/dist/QueryBuilder-BLK9Vfbz.mjs +674 -0
- package/dist/QueryBuilder-BLK9Vfbz.mjs.map +1 -0
- package/dist/QueryBuilder-DUqh4ECe.d.mts +529 -0
- package/dist/RdfJs-D6-49XB5.mjs +86 -0
- package/dist/RdfJs-D6-49XB5.mjs.map +1 -0
- package/dist/RdfJs-DXFqdWrd.d.mts +76 -0
- package/dist/RdfJs.d.mts +2 -0
- package/dist/RdfJs.mjs +1 -0
- package/dist/RdfJson-5aKPDlPS.d.mts +297 -0
- package/dist/RdfJson-BNocgW4f.mjs +548 -0
- package/dist/RdfJson-BNocgW4f.mjs.map +1 -0
- package/dist/RdfXml-DJ9G4gOq.mjs +1014 -0
- package/dist/RdfXml-DJ9G4gOq.mjs.map +1 -0
- package/dist/RdfXml-_N7yxWEp.d.mts +149 -0
- package/dist/Rdfs-BRVPsAjc.d.mts +84 -0
- package/dist/Rdfs-CyY2wVHI.mjs +167 -0
- package/dist/Rdfs-CyY2wVHI.mjs.map +1 -0
- package/dist/Rdfs.d.mts +2 -0
- package/dist/Rdfs.mjs +1 -0
- package/dist/Reasoner-BxYhx9s7.d.mts +94 -0
- package/dist/Reasoner-Cw90zrjv.mjs +798 -0
- package/dist/Reasoner-Cw90zrjv.mjs.map +1 -0
- package/dist/Reification-BmN4EfnM.d.mts +40 -0
- package/dist/Reification-dpqQvjDE.mjs +82 -0
- package/dist/Reification-dpqQvjDE.mjs.map +1 -0
- package/dist/Reification.d.mts +2 -0
- package/dist/Reification.mjs +1 -0
- package/dist/Report-XHs8htzK.mjs +121 -0
- package/dist/Report-XHs8htzK.mjs.map +1 -0
- package/dist/Report-hcXsc_19.d.mts +115 -0
- package/dist/Resource-B1cI8FyJ.d.mts +218 -0
- package/dist/Resource-sIEeNh15.mjs +374 -0
- package/dist/Resource-sIEeNh15.mjs.map +1 -0
- package/dist/Resource.d.mts +2 -0
- package/dist/Resource.mjs +1 -0
- package/dist/Results-BVNEC-Wt.d.mts +277 -0
- package/dist/Results-peJjGA2V.mjs +621 -0
- package/dist/Results-peJjGA2V.mjs.map +1 -0
- package/dist/ResultsStream-BhF0OcNn.mjs +639 -0
- package/dist/ResultsStream-BhF0OcNn.mjs.map +1 -0
- package/dist/ResultsStream-toYMXrOe.d.mts +100 -0
- package/dist/SemAct-CDchtk49.d.mts +96 -0
- package/dist/SemAct-CmyT4yI8.mjs +118 -0
- package/dist/SemAct-CmyT4yI8.mjs.map +1 -0
- package/dist/Serialization-DP9H5bYQ.mjs +514 -0
- package/dist/Serialization-DP9H5bYQ.mjs.map +1 -0
- package/dist/Serialization-Df8iVauT.d.mts +392 -0
- package/dist/Serialization.d.mts +2 -0
- package/dist/Serialization.mjs +1 -0
- package/dist/ServerFormats-CrRnjjf6.mjs +64 -0
- package/dist/ServerFormats-CrRnjjf6.mjs.map +1 -0
- package/dist/ServerFormats-DjC9NsO_.d.mts +36 -0
- package/dist/ServiceDescription-BERsvg-k.d.mts +54 -0
- package/dist/ServiceDescription-Dq5hxeGy.mjs +97 -0
- package/dist/ServiceDescription-Dq5hxeGy.mjs.map +1 -0
- package/dist/ShExC-Ctf-06CL.d.mts +67 -0
- package/dist/ShExC-DJbB19i3.mjs +1181 -0
- package/dist/ShExC-DJbB19i3.mjs.map +1 -0
- package/dist/ShExError-BeYFD9rv.d.mts +61 -0
- package/dist/ShExError-CVtq2NnM.mjs +64 -0
- package/dist/ShExError-CVtq2NnM.mjs.map +1 -0
- package/dist/ShExJ-C1u_wgyD.d.mts +531 -0
- package/dist/ShExJ-COiPd9Xw.mjs +532 -0
- package/dist/ShExJ-COiPd9Xw.mjs.map +1 -0
- package/dist/ShExR-ByR4mCh-.mjs +480 -0
- package/dist/ShExR-ByR4mCh-.mjs.map +1 -0
- package/dist/ShExR-CqONNNBz.d.mts +40 -0
- package/dist/ShapeMap-C422pxKl.d.mts +140 -0
- package/dist/ShapeMap-CsgKxB2G.mjs +181 -0
- package/dist/ShapeMap-CsgKxB2G.mjs.map +1 -0
- package/dist/Shapes-18GjfyBV.mjs +597 -0
- package/dist/Shapes-18GjfyBV.mjs.map +1 -0
- package/dist/Shapes-BQFDFc4Q.d.mts +306 -0
- package/dist/Sparql-BiYFMSpl.mjs +29 -0
- package/dist/Sparql-BiYFMSpl.mjs.map +1 -0
- package/dist/Sparql-DecpWTPh.d.mts +97 -0
- package/dist/SparqlClient-C_CjXbwj.mjs +333 -0
- package/dist/SparqlClient-C_CjXbwj.mjs.map +1 -0
- package/dist/SparqlClient-UPc88SHy.d.mts +290 -0
- package/dist/SparqlServer-CbUW-pVj.d.mts +71 -0
- package/dist/SparqlServer-Db7w7Cll.mjs +308 -0
- package/dist/SparqlServer-Db7w7Cll.mjs.map +1 -0
- package/dist/SqlStore-BBqFx-Wl.mjs +684 -0
- package/dist/SqlStore-BBqFx-Wl.mjs.map +1 -0
- package/dist/SqlStore-CCJo5I-e.d.mts +117 -0
- package/dist/Store-D0jmVfb3.d.mts +166 -0
- package/dist/Store-DH3Ow1GO.mjs +162 -0
- package/dist/Store-DH3Ow1GO.mjs.map +1 -0
- package/dist/Structure-BjMo4Bkc.mjs +334 -0
- package/dist/Structure-BjMo4Bkc.mjs.map +1 -0
- package/dist/Structure-n4CmDiab.d.mts +63 -0
- package/dist/Table-BGgm9nbM.mjs +538 -0
- package/dist/Table-BGgm9nbM.mjs.map +1 -0
- package/dist/Table-C3reiVrb.d.mts +261 -0
- package/dist/Term-B_4ezyXq.d.mts +619 -0
- package/dist/Term-CFLG1qu4.mjs +991 -0
- package/dist/Term-CFLG1qu4.mjs.map +1 -0
- package/dist/Term.d.mts +2 -0
- package/dist/Term.mjs +1 -0
- package/dist/TermCodec-CDZiEztW.mjs +397 -0
- package/dist/TermCodec-CDZiEztW.mjs.map +1 -0
- package/dist/TermCodec-_03bDXr0.d.mts +209 -0
- package/dist/TermCodec.d.mts +2 -0
- package/dist/TermCodec.mjs +1 -0
- package/dist/TermJson-BOPe0yve.d.mts +232 -0
- package/dist/TermJson-FAg3lvjl.mjs +142 -0
- package/dist/TermJson-FAg3lvjl.mjs.map +1 -0
- package/dist/TermJson.d.mts +2 -0
- package/dist/TermJson.mjs +1 -0
- package/dist/TermSchema-Bn9CoaYA.mjs +30 -0
- package/dist/TermSchema-Bn9CoaYA.mjs.map +1 -0
- package/dist/TermSchema-DBO6MroX.d.mts +6 -0
- package/dist/Testing-B-aPCpmu.mjs +63 -0
- package/dist/Testing-B-aPCpmu.mjs.map +1 -0
- package/dist/Testing-CF6s8P3O.d.mts +53 -0
- package/dist/Tiff-CR-2QeSI.d.mts +148 -0
- package/dist/Tiff-DlsOlZPM.mjs +169 -0
- package/dist/Tiff-DlsOlZPM.mjs.map +1 -0
- package/dist/Tools-7MdRKccr.d.mts +583 -0
- package/dist/Tools-ryxphZbI.mjs +329 -0
- package/dist/Tools-ryxphZbI.mjs.map +1 -0
- package/dist/Translate-B0YKKANS.d.mts +37 -0
- package/dist/Translate-gzWPq0Ia.mjs +308 -0
- package/dist/Translate-gzWPq0Ia.mjs.map +1 -0
- package/dist/Translation-DC9rLm2y.mjs +1535 -0
- package/dist/Translation-DC9rLm2y.mjs.map +1 -0
- package/dist/Translation-K4L9XBqX.d.mts +103 -0
- package/dist/TriG-BkqtqZ6Y.mjs +125 -0
- package/dist/TriG-BkqtqZ6Y.mjs.map +1 -0
- package/dist/TriG-xDjdDatp.d.mts +86 -0
- package/dist/Turtle-Bv1_bisW.d.mts +85 -0
- package/dist/Turtle-CZVUOtwl.mjs +133 -0
- package/dist/Turtle-CZVUOtwl.mjs.map +1 -0
- package/dist/ValidationReport-DBdJshW5.mjs +285 -0
- package/dist/ValidationReport-DBdJshW5.mjs.map +1 -0
- package/dist/ValidationReport-Dx3WxY0h.d.mts +192 -0
- package/dist/Validator-227ff9Rn.d.mts +179 -0
- package/dist/Validator-BzXMKDeJ.mjs +1162 -0
- package/dist/Validator-BzXMKDeJ.mjs.map +1 -0
- package/dist/Validator-Dl8cih5V.d.mts +207 -0
- package/dist/Validator-DmUfMbpL.mjs +568 -0
- package/dist/Validator-DmUfMbpL.mjs.map +1 -0
- package/dist/Vocab-DceKywpq.mjs +168 -0
- package/dist/Vocab-DceKywpq.mjs.map +1 -0
- package/dist/Vocab-Df-L-IwZ.d.mts +46 -0
- package/dist/Vocab-Do56UgBX.d.mts +81 -0
- package/dist/Vocab-TfpWG1Ne.mjs +118 -0
- package/dist/Vocab-TfpWG1Ne.mjs.map +1 -0
- package/dist/Vocab.d.mts +2 -0
- package/dist/Vocab.mjs +1 -0
- package/dist/Vocabulary-C6-GPOy4.d.mts +22 -0
- package/dist/Vocabulary-CnQl-_Z4.mjs +179 -0
- package/dist/Vocabulary-CnQl-_Z4.mjs.map +1 -0
- package/dist/Xml-B7iihYCS.mjs +976 -0
- package/dist/Xml-B7iihYCS.mjs.map +1 -0
- package/dist/Xml-CmfHS7SW.d.mts +267 -0
- package/dist/Xmp-D7CKA7MZ.d.mts +111 -0
- package/dist/Xmp-DCGN9pOD.mjs +307 -0
- package/dist/Xmp-DCGN9pOD.mjs.map +1 -0
- package/dist/XmpBasic-CP38jpR_.mjs +73 -0
- package/dist/XmpBasic-CP38jpR_.mjs.map +1 -0
- package/dist/XmpBasic-Cmbe53rQ.d.mts +64 -0
- package/dist/XmpMM-BfL_TgJF.mjs +73 -0
- package/dist/XmpMM-BfL_TgJF.mjs.map +1 -0
- package/dist/XmpMM-Dqm3IX8p.d.mts +63 -0
- package/dist/XmpRights-BKPtoI5L.mjs +73 -0
- package/dist/XmpRights-BKPtoI5L.mjs.map +1 -0
- package/dist/XmpRights-CaALZQz2.d.mts +63 -0
- package/dist/Xsd-Cdgx5zRB.mjs +405 -0
- package/dist/Xsd-Cdgx5zRB.mjs.map +1 -0
- package/dist/Xsd-D2elNhSm.d.mts +187 -0
- package/dist/Xsd.d.mts +2 -0
- package/dist/Xsd.mjs +1 -0
- package/dist/accessors-CEjaojuQ.mjs +28 -0
- package/dist/accessors-CEjaojuQ.mjs.map +1 -0
- package/dist/codec-Lb2T96rv.d.mts +20 -0
- package/dist/codec-QNo7IdJF.mjs +389 -0
- package/dist/codec-QNo7IdJF.mjs.map +1 -0
- package/dist/csvw/Csv2Json.d.mts +2 -0
- package/dist/csvw/Csv2Json.mjs +1 -0
- package/dist/csvw/Csv2Rdf.d.mts +2 -0
- package/dist/csvw/Csv2Rdf.mjs +1 -0
- package/dist/csvw/Datatype.d.mts +2 -0
- package/dist/csvw/Datatype.mjs +1 -0
- package/dist/csvw/Metadata.d.mts +2 -0
- package/dist/csvw/Metadata.mjs +1 -0
- package/dist/csvw/Processor.d.mts +2 -0
- package/dist/csvw/Processor.mjs +1 -0
- package/dist/csvw/Report.d.mts +2 -0
- package/dist/csvw/Report.mjs +1 -0
- package/dist/csvw/Table.d.mts +2 -0
- package/dist/csvw/Table.mjs +1 -0
- package/dist/csvw/index.d.mts +8 -0
- package/dist/csvw/index.mjs +8 -0
- package/dist/index-Cms2TYfC.d.mts +16 -0
- package/dist/index-Ct8xFmRs.d.mts +7 -0
- package/dist/index-D4QFwOjm.d.mts +28 -0
- package/dist/index.d.mts +18 -0
- package/dist/index.mjs +17 -0
- package/dist/jsonld/DocumentLoader.d.mts +2 -0
- package/dist/jsonld/DocumentLoader.mjs +1 -0
- package/dist/jsonld/JsonLd.d.mts +2 -0
- package/dist/jsonld/JsonLd.mjs +1 -0
- package/dist/jsonld/JsonLdError.d.mts +2 -0
- package/dist/jsonld/JsonLdError.mjs +1 -0
- package/dist/jsonld/index.d.mts +4 -0
- package/dist/jsonld/index.mjs +4 -0
- package/dist/lists-D-OpQ0Ir.mjs +77 -0
- package/dist/lists-D-OpQ0Ir.mjs.map +1 -0
- package/dist/loop-D5-gNx9K.mjs +21 -0
- package/dist/loop-D5-gNx9K.mjs.map +1 -0
- package/dist/loop-DZ2hXlr_.mjs +21 -0
- package/dist/loop-DZ2hXlr_.mjs.map +1 -0
- package/dist/n3/Isomorphism.d.mts +2 -0
- package/dist/n3/Isomorphism.mjs +1 -0
- package/dist/n3/Mapping.d.mts +2 -0
- package/dist/n3/Mapping.mjs +1 -0
- package/dist/n3/Model.d.mts +2 -0
- package/dist/n3/Model.mjs +1 -0
- package/dist/n3/N3.d.mts +2 -0
- package/dist/n3/N3.mjs +1 -0
- package/dist/n3/Reasoner.d.mts +2 -0
- package/dist/n3/Reasoner.mjs +2 -0
- package/dist/n3/Vocab.d.mts +2 -0
- package/dist/n3/Vocab.mjs +1 -0
- package/dist/n3/index.d.mts +7 -0
- package/dist/n3/index.mjs +7 -0
- package/dist/ntriples/Grammar.d.mts +2 -0
- package/dist/ntriples/Grammar.mjs +1 -0
- package/dist/ntriples/Lexical.d.mts +2 -0
- package/dist/ntriples/Lexical.mjs +1 -0
- package/dist/ntriples/NQuads.d.mts +2 -0
- package/dist/ntriples/NQuads.mjs +1 -0
- package/dist/ntriples/NTriples.d.mts +2 -0
- package/dist/ntriples/NTriples.mjs +1 -0
- package/dist/ntriples/index.d.mts +5 -0
- package/dist/ntriples/index.mjs +5 -0
- package/dist/rdfjson/RdfJson.d.mts +2 -0
- package/dist/rdfjson/RdfJson.mjs +1 -0
- package/dist/rdfjson/index.d.mts +2 -0
- package/dist/rdfjson/index.mjs +1 -0
- package/dist/rdfxml/RdfXml.d.mts +2 -0
- package/dist/rdfxml/RdfXml.mjs +1 -0
- package/dist/rdfxml/Xml.d.mts +2 -0
- package/dist/rdfxml/Xml.mjs +1 -0
- package/dist/rdfxml/index.d.mts +3 -0
- package/dist/rdfxml/index.mjs +3 -0
- package/dist/rolldown-runtime-D8jQpDG7.mjs +12 -0
- package/dist/serialize-96KBvKaf.mjs +1463 -0
- package/dist/serialize-96KBvKaf.mjs.map +1 -0
- package/dist/serialize-DsoXdM6n.d.mts +37 -0
- package/dist/shacl/Message.d.mts +2 -0
- package/dist/shacl/Message.mjs +1 -0
- package/dist/shacl/Path.d.mts +2 -0
- package/dist/shacl/Path.mjs +1 -0
- package/dist/shacl/Shapes.d.mts +2 -0
- package/dist/shacl/Shapes.mjs +1 -0
- package/dist/shacl/Sparql.d.mts +2 -0
- package/dist/shacl/Sparql.mjs +1 -0
- package/dist/shacl/ValidationReport.d.mts +2 -0
- package/dist/shacl/ValidationReport.mjs +1 -0
- package/dist/shacl/Validator.d.mts +2 -0
- package/dist/shacl/Validator.mjs +1 -0
- package/dist/shacl/Vocabulary.d.mts +2 -0
- package/dist/shacl/Vocabulary.mjs +1 -0
- package/dist/shacl/index.d.mts +9 -0
- package/dist/shacl/index.mjs +8 -0
- package/dist/shex/SemAct.d.mts +2 -0
- package/dist/shex/SemAct.mjs +1 -0
- package/dist/shex/ShExC.d.mts +2 -0
- package/dist/shex/ShExC.mjs +1 -0
- package/dist/shex/ShExError.d.mts +2 -0
- package/dist/shex/ShExError.mjs +1 -0
- package/dist/shex/ShExJ.d.mts +2 -0
- package/dist/shex/ShExJ.mjs +2 -0
- package/dist/shex/ShExR.d.mts +2 -0
- package/dist/shex/ShExR.mjs +1 -0
- package/dist/shex/ShapeMap.d.mts +2 -0
- package/dist/shex/ShapeMap.mjs +1 -0
- package/dist/shex/Structure.d.mts +2 -0
- package/dist/shex/Structure.mjs +2 -0
- package/dist/shex/Validator.d.mts +2 -0
- package/dist/shex/Validator.mjs +4 -0
- package/dist/shex/index.d.mts +9 -0
- package/dist/shex/index.mjs +9 -0
- package/dist/sparql/Algebra.d.mts +2 -0
- package/dist/sparql/Algebra.mjs +1 -0
- package/dist/sparql/Ast.d.mts +2 -0
- package/dist/sparql/Ast.mjs +1 -0
- package/dist/sparql/Bindings.d.mts +2 -0
- package/dist/sparql/Bindings.mjs +1 -0
- package/dist/sparql/ClientErrors.d.mts +2 -0
- package/dist/sparql/ClientErrors.mjs +1 -0
- package/dist/sparql/ClientFormats.d.mts +2 -0
- package/dist/sparql/ClientFormats.mjs +1 -0
- package/dist/sparql/Engine.d.mts +2 -0
- package/dist/sparql/Engine.mjs +1 -0
- package/dist/sparql/Errors.d.mts +2 -0
- package/dist/sparql/Errors.mjs +1 -0
- package/dist/sparql/Expression.d.mts +2 -0
- package/dist/sparql/Expression.mjs +1 -0
- package/dist/sparql/Federation.d.mts +2 -0
- package/dist/sparql/Federation.mjs +1 -0
- package/dist/sparql/Functions.d.mts +2 -0
- package/dist/sparql/Functions.mjs +1 -0
- package/dist/sparql/Generator.d.mts +2 -0
- package/dist/sparql/Generator.mjs +1 -0
- package/dist/sparql/GraphStore.d.mts +2 -0
- package/dist/sparql/GraphStore.mjs +1 -0
- package/dist/sparql/Optimizer.d.mts +2 -0
- package/dist/sparql/Optimizer.mjs +1 -0
- package/dist/sparql/Options.d.mts +2 -0
- package/dist/sparql/Options.mjs +1 -0
- package/dist/sparql/Parser.d.mts +2 -0
- package/dist/sparql/Parser.mjs +1 -0
- package/dist/sparql/Protocol.d.mts +2 -0
- package/dist/sparql/Protocol.mjs +1 -0
- package/dist/sparql/ProtocolErrors.d.mts +2 -0
- package/dist/sparql/ProtocolErrors.mjs +1 -0
- package/dist/sparql/QueryBuilder.d.mts +2 -0
- package/dist/sparql/QueryBuilder.mjs +1 -0
- package/dist/sparql/Results.d.mts +2 -0
- package/dist/sparql/Results.mjs +1 -0
- package/dist/sparql/ResultsStream.d.mts +2 -0
- package/dist/sparql/ResultsStream.mjs +1 -0
- package/dist/sparql/ServerFormats.d.mts +2 -0
- package/dist/sparql/ServerFormats.mjs +1 -0
- package/dist/sparql/ServiceDescription.d.mts +2 -0
- package/dist/sparql/ServiceDescription.mjs +1 -0
- package/dist/sparql/SparqlClient.d.mts +2 -0
- package/dist/sparql/SparqlClient.mjs +1 -0
- package/dist/sparql/SparqlServer.d.mts +2 -0
- package/dist/sparql/SparqlServer.mjs +1 -0
- package/dist/sparql/Store.d.mts +2 -0
- package/dist/sparql/Store.mjs +1 -0
- package/dist/sparql/TermSchema.d.mts +3 -0
- package/dist/sparql/TermSchema.mjs +2 -0
- package/dist/sparql/Testing.d.mts +2 -0
- package/dist/sparql/Testing.mjs +1 -0
- package/dist/sparql/Translate.d.mts +2 -0
- package/dist/sparql/Translate.mjs +1 -0
- package/dist/sparql/ai/Mcp.d.mts +2 -0
- package/dist/sparql/ai/Mcp.mjs +1 -0
- package/dist/sparql/ai/Tools.d.mts +2 -0
- package/dist/sparql/ai/Tools.mjs +1 -0
- package/dist/sparql/ai/index.d.mts +3 -0
- package/dist/sparql/ai/index.mjs +3 -0
- package/dist/sparql/index.d.mts +30 -0
- package/dist/sparql/index.mjs +29 -0
- package/dist/sparql/shacl/Evaluator.d.mts +2 -0
- package/dist/sparql/shacl/Evaluator.mjs +1 -0
- package/dist/sparql/shacl/Query.d.mts +2 -0
- package/dist/sparql/shacl/Query.mjs +1 -0
- package/dist/sparql/shacl/index.d.mts +3 -0
- package/dist/sparql/shacl/index.mjs +3 -0
- package/dist/sparql/sql/Dialect.d.mts +2 -0
- package/dist/sparql/sql/Dialect.mjs +1 -0
- package/dist/sparql/sql/SqlStore.d.mts +2 -0
- package/dist/sparql/sql/SqlStore.mjs +1 -0
- package/dist/sparql/sql/Translation.d.mts +2 -0
- package/dist/sparql/sql/Translation.mjs +1 -0
- package/dist/sparql/sql/index.d.mts +4 -0
- package/dist/sparql/sql/index.mjs +4 -0
- package/dist/stringMap-D5YIpYtR.mjs +38 -0
- package/dist/stringMap-D5YIpYtR.mjs.map +1 -0
- package/dist/tokens-C6BzeodQ.mjs +24 -0
- package/dist/tokens-C6BzeodQ.mjs.map +1 -0
- package/dist/turtle/Grammar.d.mts +3 -0
- package/dist/turtle/Grammar.mjs +3 -0
- package/dist/turtle/Manifest.d.mts +2 -0
- package/dist/turtle/Manifest.mjs +1 -0
- package/dist/turtle/TriG.d.mts +2 -0
- package/dist/turtle/TriG.mjs +1 -0
- package/dist/turtle/Turtle.d.mts +2 -0
- package/dist/turtle/Turtle.mjs +1 -0
- package/dist/turtle/index.d.mts +5 -0
- package/dist/turtle/index.mjs +5 -0
- package/dist/xmp/DublinCore.d.mts +2 -0
- package/dist/xmp/DublinCore.mjs +1 -0
- package/dist/xmp/Exif.d.mts +2 -0
- package/dist/xmp/Exif.mjs +1 -0
- package/dist/xmp/Extract.d.mts +2 -0
- package/dist/xmp/Extract.mjs +1 -0
- package/dist/xmp/Metadata.d.mts +2 -0
- package/dist/xmp/Metadata.mjs +1 -0
- package/dist/xmp/Namespaces.d.mts +2 -0
- package/dist/xmp/Namespaces.mjs +1 -0
- package/dist/xmp/Packet.d.mts +2 -0
- package/dist/xmp/Packet.mjs +1 -0
- package/dist/xmp/Pdf.d.mts +2 -0
- package/dist/xmp/Pdf.mjs +1 -0
- package/dist/xmp/PdfA.d.mts +2 -0
- package/dist/xmp/PdfA.mjs +1 -0
- package/dist/xmp/Photoshop.d.mts +2 -0
- package/dist/xmp/Photoshop.mjs +1 -0
- package/dist/xmp/Tiff.d.mts +2 -0
- package/dist/xmp/Tiff.mjs +1 -0
- package/dist/xmp/Xmp.d.mts +2 -0
- package/dist/xmp/Xmp.mjs +3 -0
- package/dist/xmp/XmpBasic.d.mts +2 -0
- package/dist/xmp/XmpBasic.mjs +1 -0
- package/dist/xmp/XmpMM.d.mts +2 -0
- package/dist/xmp/XmpMM.mjs +1 -0
- package/dist/xmp/XmpRights.d.mts +2 -0
- package/dist/xmp/XmpRights.mjs +1 -0
- package/dist/xmp/index.d.mts +15 -0
- package/dist/xmp/index.mjs +15 -0
- package/package.json +187 -3
- package/src/Dataset.ts +1085 -0
- package/src/Iri.ts +322 -0
- package/src/Isomorphism.ts +319 -0
- package/src/LanguageTag.ts +98 -0
- package/src/Namespace.ts +100 -0
- package/src/PrefixMap.ts +117 -0
- package/src/RdfJs.ts +146 -0
- package/src/Rdfs.ts +241 -0
- package/src/Reification.ts +103 -0
- package/src/Resource.ts +873 -0
- package/src/Serialization.ts +775 -0
- package/src/Term.ts +1300 -0
- package/src/TermCodec.ts +505 -0
- package/src/TermJson.ts +313 -0
- package/src/Vocab.ts +161 -0
- package/src/Xsd.ts +573 -0
- package/src/csvw/Csv2Json.ts +265 -0
- package/src/csvw/Csv2Rdf.ts +268 -0
- package/src/csvw/Datatype.ts +589 -0
- package/src/csvw/Metadata.ts +1523 -0
- package/src/csvw/Processor.ts +276 -0
- package/src/csvw/Report.ts +135 -0
- package/src/csvw/Table.ts +759 -0
- package/src/csvw/index.ts +22 -0
- package/src/csvw/internal/dateFormat.ts +202 -0
- package/src/csvw/internal/json.ts +104 -0
- package/src/csvw/internal/numberFormat.ts +369 -0
- package/src/csvw/internal/object.ts +23 -0
- package/src/csvw/internal/uriTemplate.ts +130 -0
- package/src/csvw/internal/url.ts +93 -0
- package/src/csvw/internal/vocab.ts +282 -0
- package/src/index.ts +40 -0
- package/src/internal/arbitrary.ts +148 -0
- package/src/internal/loop.ts +24 -0
- package/src/internal/pending.ts +20 -0
- package/src/internal/textDecoder.ts +183 -0
- package/src/jsonld/DocumentLoader.ts +512 -0
- package/src/jsonld/JsonLd.ts +847 -0
- package/src/jsonld/JsonLdError.ts +105 -0
- package/src/jsonld/index.ts +13 -0
- package/src/jsonld/internal/compact.ts +852 -0
- package/src/jsonld/internal/context.ts +781 -0
- package/src/jsonld/internal/expand.ts +614 -0
- package/src/jsonld/internal/flatten.ts +243 -0
- package/src/jsonld/internal/frame.ts +559 -0
- package/src/jsonld/internal/iri.ts +52 -0
- package/src/jsonld/internal/json.ts +19 -0
- package/src/jsonld/internal/linkHeader.ts +60 -0
- package/src/jsonld/internal/rdf.ts +481 -0
- package/src/jsonld/internal/util.ts +367 -0
- package/src/n3/Isomorphism.ts +476 -0
- package/src/n3/Mapping.ts +332 -0
- package/src/n3/Model.ts +696 -0
- package/src/n3/N3.ts +237 -0
- package/src/n3/Reasoner.ts +568 -0
- package/src/n3/Vocab.ts +111 -0
- package/src/n3/index.ts +21 -0
- package/src/n3/internal/builtins.ts +668 -0
- package/src/n3/internal/guards.ts +23 -0
- package/src/n3/internal/lists.ts +106 -0
- package/src/n3/internal/loop.ts +28 -0
- package/src/n3/internal/parser.ts +1032 -0
- package/src/n3/internal/writer.ts +344 -0
- package/src/ntriples/Grammar.ts +317 -0
- package/src/ntriples/Lexical.ts +321 -0
- package/src/ntriples/NQuads.ts +140 -0
- package/src/ntriples/NTriples.ts +143 -0
- package/src/ntriples/index.ts +14 -0
- package/src/ntriples/internal/codec.ts +229 -0
- package/src/ntriples/internal/lineParser.ts +326 -0
- package/src/ntriples/internal/loop.ts +14 -0
- package/src/rdfjson/RdfJson.ts +806 -0
- package/src/rdfjson/index.ts +9 -0
- package/src/rdfjson/internal/json.ts +19 -0
- package/src/rdfxml/RdfXml.ts +1408 -0
- package/src/rdfxml/Xml.ts +419 -0
- package/src/rdfxml/index.ts +11 -0
- package/src/rdfxml/internal/chars.ts +73 -0
- package/src/rdfxml/internal/loop.ts +24 -0
- package/src/rdfxml/internal/parser.ts +1265 -0
- package/src/shacl/Message.ts +102 -0
- package/src/shacl/Path.ts +483 -0
- package/src/shacl/Shapes.ts +913 -0
- package/src/shacl/Sparql.ts +128 -0
- package/src/shacl/ValidationReport.ts +438 -0
- package/src/shacl/Validator.ts +1156 -0
- package/src/shacl/Vocabulary.ts +180 -0
- package/src/shacl/index.ts +22 -0
- package/src/shacl/internal/compare.ts +128 -0
- package/src/shacl/internal/regex.ts +56 -0
- package/src/shex/SemAct.ts +197 -0
- package/src/shex/ShExC.ts +415 -0
- package/src/shex/ShExError.ts +71 -0
- package/src/shex/ShExJ.ts +893 -0
- package/src/shex/ShExR.ts +640 -0
- package/src/shex/ShapeMap.ts +385 -0
- package/src/shex/Structure.ts +467 -0
- package/src/shex/Validator.ts +395 -0
- package/src/shex/index.ts +24 -0
- package/src/shex/internal/engine.ts +682 -0
- package/src/shex/internal/iterate.ts +14 -0
- package/src/shex/internal/json.ts +12 -0
- package/src/shex/internal/lexer.ts +56 -0
- package/src/shex/internal/nodeConstraint.ts +368 -0
- package/src/shex/internal/shexcLexer.ts +387 -0
- package/src/shex/internal/shexcParser.ts +1312 -0
- package/src/shex/internal/tokens.ts +41 -0
- package/src/shex/internal/xpathRegex.ts +290 -0
- package/src/sparql/Algebra.ts +914 -0
- package/src/sparql/Ast.ts +1344 -0
- package/src/sparql/Bindings.ts +272 -0
- package/src/sparql/ClientErrors.ts +156 -0
- package/src/sparql/ClientFormats.ts +70 -0
- package/src/sparql/Engine.ts +699 -0
- package/src/sparql/Errors.ts +30 -0
- package/src/sparql/Expression.ts +360 -0
- package/src/sparql/Federation.ts +187 -0
- package/src/sparql/Functions.ts +689 -0
- package/src/sparql/Generator.ts +426 -0
- package/src/sparql/GraphStore.ts +341 -0
- package/src/sparql/Optimizer.ts +230 -0
- package/src/sparql/Options.ts +191 -0
- package/src/sparql/Parser.ts +173 -0
- package/src/sparql/Protocol.ts +342 -0
- package/src/sparql/ProtocolErrors.ts +113 -0
- package/src/sparql/QueryBuilder.ts +953 -0
- package/src/sparql/Results.ts +844 -0
- package/src/sparql/ResultsStream.ts +771 -0
- package/src/sparql/ServerFormats.ts +75 -0
- package/src/sparql/ServiceDescription.ts +130 -0
- package/src/sparql/SparqlClient.ts +947 -0
- package/src/sparql/SparqlServer.ts +528 -0
- package/src/sparql/Store.ts +311 -0
- package/src/sparql/TermSchema.ts +20 -0
- package/src/sparql/Testing.ts +114 -0
- package/src/sparql/Translate.ts +407 -0
- package/src/sparql/ai/Mcp.ts +43 -0
- package/src/sparql/ai/Tools.ts +481 -0
- package/src/sparql/ai/index.ts +11 -0
- package/src/sparql/index.ts +64 -0
- package/src/sparql/internal/evaluator.ts +947 -0
- package/src/sparql/internal/hash.ts +418 -0
- package/src/sparql/internal/json.ts +12 -0
- package/src/sparql/internal/lexer.ts +488 -0
- package/src/sparql/internal/loop.ts +24 -0
- package/src/sparql/internal/parser.ts +2215 -0
- package/src/sparql/internal/prefetch.ts +46 -0
- package/src/sparql/internal/stringMap.ts +39 -0
- package/src/sparql/internal/textResults.ts +226 -0
- package/src/sparql/internal/values.ts +550 -0
- package/src/sparql/shacl/Evaluator.ts +478 -0
- package/src/sparql/shacl/Query.ts +574 -0
- package/src/sparql/shacl/index.ts +12 -0
- package/src/sparql/sql/Dialect.ts +246 -0
- package/src/sparql/sql/SqlStore.ts +1080 -0
- package/src/sparql/sql/Translation.ts +1898 -0
- package/src/sparql/sql/index.ts +17 -0
- package/src/sparql/sql/internal/encoding.ts +313 -0
- package/src/turtle/Grammar.ts +286 -0
- package/src/turtle/Manifest.ts +215 -0
- package/src/turtle/TriG.ts +158 -0
- package/src/turtle/Turtle.ts +166 -0
- package/src/turtle/index.ts +14 -0
- package/src/turtle/internal/loop.ts +23 -0
- package/src/turtle/internal/parse.ts +112 -0
- package/src/turtle/internal/parser.ts +1303 -0
- package/src/turtle/internal/serialize.ts +79 -0
- package/src/turtle/internal/streamWriter.ts +128 -0
- package/src/turtle/internal/writer.ts +898 -0
- package/src/xmp/DublinCore.ts +147 -0
- package/src/xmp/Exif.ts +109 -0
- package/src/xmp/Extract.ts +351 -0
- package/src/xmp/Metadata.ts +703 -0
- package/src/xmp/Namespaces.ts +228 -0
- package/src/xmp/Packet.ts +297 -0
- package/src/xmp/Pdf.ts +99 -0
- package/src/xmp/PdfA.ts +280 -0
- package/src/xmp/Photoshop.ts +275 -0
- package/src/xmp/Tiff.ts +196 -0
- package/src/xmp/Xmp.ts +430 -0
- package/src/xmp/XmpBasic.ts +90 -0
- package/src/xmp/XmpMM.ts +82 -0
- package/src/xmp/XmpRights.ts +83 -0
- package/src/xmp/index.ts +36 -0
- package/src/xmp/internal/accessors.ts +72 -0
- package/src/xmp/internal/xml.ts +63 -0
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
import { _ as Quad, d as NamedNode, s as GroundTerm } from "./Term-B_4ezyXq.mjs";
|
|
2
|
+
import { n as Dataset } from "./Dataset-DS3ESOcO.mjs";
|
|
3
|
+
import { nt as Update, q as Query } from "./Ast-vcw2W-lf.mjs";
|
|
4
|
+
import { t as Bindings } from "./Bindings-DiKpBd7f.mjs";
|
|
5
|
+
import { a as SparqlClientError } from "./ClientErrors-D4IZHUM-.mjs";
|
|
6
|
+
import { f as ResultSet, n as BooleanResult } from "./Results-BVNEC-Wt.mjs";
|
|
7
|
+
import { r as Builder, u as Row$1 } from "./QueryBuilder-DUqh4ECe.mjs";
|
|
8
|
+
import { n as ResultEvent } from "./ResultsStream-toYMXrOe.mjs";
|
|
9
|
+
import * as Schema from "effect/Schema";
|
|
10
|
+
import * as Effect from "effect/Effect";
|
|
11
|
+
import * as Context from "effect/Context";
|
|
12
|
+
import * as Layer from "effect/Layer";
|
|
13
|
+
import * as Stream from "effect/Stream";
|
|
14
|
+
import * as HttpClient from "effect/http/HttpClient";
|
|
15
|
+
import * as Duration from "effect/Duration";
|
|
16
|
+
import * as Schedule from "effect/Schedule";
|
|
17
|
+
declare namespace SparqlClient_d_exports {
|
|
18
|
+
export { Config, DEFAULT_RESULTS_ACCEPT, GraphIri, GraphTarget, Method, QueryInput, QueryOptions, QueryResult, RequestOptions, Row, SelectAccessor, SparqlClient, SparqlClientShape, UpdateInput, UpdateOptions, UploadOptions, ask, construct, decode, layer, make, select, toSparql, update };
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* How queries are sent: `get` (URL query string), `post`
|
|
22
|
+
* (`application/sparql-query` body) or `auto` (`GET` unless the URL would
|
|
23
|
+
* exceed `maxGetLength`).
|
|
24
|
+
*
|
|
25
|
+
* @since 0.1.0
|
|
26
|
+
* @category models
|
|
27
|
+
*/
|
|
28
|
+
type Method = 'auto' | 'get' | 'post';
|
|
29
|
+
/**
|
|
30
|
+
* Client configuration.
|
|
31
|
+
*
|
|
32
|
+
* @since 0.1.0
|
|
33
|
+
* @category models
|
|
34
|
+
*/
|
|
35
|
+
interface Config {
|
|
36
|
+
/** The SPARQL query endpoint URL. */
|
|
37
|
+
readonly endpoint: string;
|
|
38
|
+
/** The SPARQL update endpoint URL (default: `endpoint`). */
|
|
39
|
+
readonly updateEndpoint?: string | undefined;
|
|
40
|
+
/** The Graph Store Protocol endpoint URL (required for graph operations). */
|
|
41
|
+
readonly graphStoreEndpoint?: string | undefined;
|
|
42
|
+
/** Headers sent with every request (e.g. `authorization`). */
|
|
43
|
+
readonly headers?: Readonly<Record<string, string>> | undefined;
|
|
44
|
+
/** How queries are sent (default `auto`). */
|
|
45
|
+
readonly method?: Method | undefined;
|
|
46
|
+
/** The longest URL sent with `GET` in `auto` mode (default 2048). */
|
|
47
|
+
readonly maxGetLength?: number | undefined;
|
|
48
|
+
/** Time limit for receiving a response (headers). */
|
|
49
|
+
readonly timeout?: Duration.Input | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Retry policy for transient failures (transport errors, timeouts and the
|
|
52
|
+
* statuses 408, 429, 502, 503 and 504; see `retryWhile`).
|
|
53
|
+
*/
|
|
54
|
+
readonly retry?: Schedule.Schedule<unknown, SparqlClientError> | undefined;
|
|
55
|
+
/** Which errors are retried (default `ClientErrors.isTransient`). */
|
|
56
|
+
readonly retryWhile?: ((error: SparqlClientError) => boolean) | undefined;
|
|
57
|
+
/** The `Accept` header of `SELECT` / `ASK` requests. */
|
|
58
|
+
readonly resultsAccept?: string | undefined;
|
|
59
|
+
/** The media type used to upload graphs (default `application/n-triples`). */
|
|
60
|
+
readonly graphMediaType?: string | undefined;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* A query: SPARQL text, a parsed query or a `QueryBuilder` builder.
|
|
64
|
+
*
|
|
65
|
+
* @since 0.1.0
|
|
66
|
+
* @category models
|
|
67
|
+
*/
|
|
68
|
+
type QueryInput = string | Query | Builder<'Select', any, any> | Builder<'Ask', any, any> | Builder<'Construct', any, any> | Builder<'Describe', any, any>;
|
|
69
|
+
/**
|
|
70
|
+
* An update: SPARQL text or a parsed update.
|
|
71
|
+
*
|
|
72
|
+
* @since 0.1.0
|
|
73
|
+
* @category models
|
|
74
|
+
*/
|
|
75
|
+
type UpdateInput = string | Update;
|
|
76
|
+
/**
|
|
77
|
+
* A graph IRI.
|
|
78
|
+
*
|
|
79
|
+
* @since 0.1.0
|
|
80
|
+
* @category models
|
|
81
|
+
*/
|
|
82
|
+
type GraphIri = string | NamedNode;
|
|
83
|
+
/**
|
|
84
|
+
* The graph of a Graph Store operation: `'default'` or a named graph.
|
|
85
|
+
*
|
|
86
|
+
* @since 0.1.0
|
|
87
|
+
* @category models
|
|
88
|
+
*/
|
|
89
|
+
type GraphTarget = 'default' | NamedNode;
|
|
90
|
+
/**
|
|
91
|
+
* Per-request options.
|
|
92
|
+
*
|
|
93
|
+
* @since 0.1.0
|
|
94
|
+
* @category models
|
|
95
|
+
*/
|
|
96
|
+
interface RequestOptions {
|
|
97
|
+
/** Extra headers. */
|
|
98
|
+
readonly headers?: Readonly<Record<string, string>> | undefined;
|
|
99
|
+
/** Overrides the configured timeout. */
|
|
100
|
+
readonly timeout?: Duration.Input | undefined;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Options of query requests.
|
|
104
|
+
*
|
|
105
|
+
* @since 0.1.0
|
|
106
|
+
* @category models
|
|
107
|
+
*/
|
|
108
|
+
interface QueryOptions extends RequestOptions {
|
|
109
|
+
/** `default-graph-uri` parameters. */
|
|
110
|
+
readonly defaultGraphs?: ReadonlyArray<GraphIri> | undefined;
|
|
111
|
+
/** `named-graph-uri` parameters. */
|
|
112
|
+
readonly namedGraphs?: ReadonlyArray<GraphIri> | undefined;
|
|
113
|
+
/** Overrides the configured method. */
|
|
114
|
+
readonly method?: Method | undefined;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Options of update requests.
|
|
118
|
+
*
|
|
119
|
+
* @since 0.1.0
|
|
120
|
+
* @category models
|
|
121
|
+
*/
|
|
122
|
+
interface UpdateOptions extends RequestOptions {
|
|
123
|
+
/** `using-graph-uri` parameters. */
|
|
124
|
+
readonly usingGraphs?: ReadonlyArray<GraphIri> | undefined;
|
|
125
|
+
/** `using-named-graph-uri` parameters. */
|
|
126
|
+
readonly usingNamedGraphs?: ReadonlyArray<GraphIri> | undefined;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Options of Graph Store uploads.
|
|
130
|
+
*
|
|
131
|
+
* @since 0.1.0
|
|
132
|
+
* @category models
|
|
133
|
+
*/
|
|
134
|
+
interface UploadOptions extends RequestOptions {
|
|
135
|
+
/** The media type to upload with (default: the configured one). */
|
|
136
|
+
readonly mediaType?: string | undefined;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* An untyped `SELECT` row.
|
|
140
|
+
*
|
|
141
|
+
* @since 0.1.0
|
|
142
|
+
* @category models
|
|
143
|
+
*/
|
|
144
|
+
type Row = Readonly<Record<string, GroundTerm>>;
|
|
145
|
+
/**
|
|
146
|
+
* The materialised result of any query.
|
|
147
|
+
*
|
|
148
|
+
* @since 0.1.0
|
|
149
|
+
* @category models
|
|
150
|
+
*/
|
|
151
|
+
type QueryResult = ResultSet | BooleanResult | {
|
|
152
|
+
readonly _tag: 'Graph';
|
|
153
|
+
readonly dataset: Dataset;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* The client service.
|
|
157
|
+
*
|
|
158
|
+
* @since 0.1.0
|
|
159
|
+
* @category models
|
|
160
|
+
*/
|
|
161
|
+
interface SparqlClientShape {
|
|
162
|
+
readonly config: Config;
|
|
163
|
+
/** Streams the rows of a `SELECT` query (typed for builders). */
|
|
164
|
+
readonly select: {
|
|
165
|
+
<R extends string, O extends string>(query: Builder<'Select', R, O>, options?: QueryOptions): Stream.Stream<Row$1<R, O>, SparqlClientError>;
|
|
166
|
+
(query: string | Query, options?: QueryOptions): Stream.Stream<Row, SparqlClientError>;
|
|
167
|
+
};
|
|
168
|
+
/** Streams the solutions of a `SELECT` query. */
|
|
169
|
+
readonly selectBindings: (query: QueryInput, options?: QueryOptions) => Stream.Stream<Bindings, SparqlClientError>;
|
|
170
|
+
/** Streams the raw events (variables, solutions, boolean) of a results document. */
|
|
171
|
+
readonly results: (query: QueryInput, options?: QueryOptions) => Stream.Stream<ResultEvent, SparqlClientError>;
|
|
172
|
+
/** Collects a `SELECT` result, with its variables. */
|
|
173
|
+
readonly selectAll: (query: QueryInput, options?: QueryOptions) => Effect.Effect<ResultSet, SparqlClientError>;
|
|
174
|
+
/** Evaluates an `ASK` query. */
|
|
175
|
+
readonly ask: (query: QueryInput, options?: QueryOptions) => Effect.Effect<boolean, SparqlClientError>;
|
|
176
|
+
/** Streams the triples of a `CONSTRUCT` (or `DESCRIBE`) query. */
|
|
177
|
+
readonly construct: (query: QueryInput, options?: QueryOptions) => Stream.Stream<Quad, SparqlClientError>;
|
|
178
|
+
/** Streams the triples of a `DESCRIBE` query. */
|
|
179
|
+
readonly describe: (query: QueryInput, options?: QueryOptions) => Stream.Stream<Quad, SparqlClientError>;
|
|
180
|
+
/** Collects the triples of a `CONSTRUCT` / `DESCRIBE` query. */
|
|
181
|
+
readonly constructDataset: (query: QueryInput, options?: QueryOptions) => Effect.Effect<Dataset, SparqlClientError>;
|
|
182
|
+
/** Evaluates a query of any form, dispatching on the response media type. */
|
|
183
|
+
readonly query: (query: QueryInput, options?: QueryOptions) => Effect.Effect<QueryResult, SparqlClientError>;
|
|
184
|
+
/** Executes an update request. */
|
|
185
|
+
readonly update: (update: UpdateInput, options?: UpdateOptions) => Effect.Effect<void, SparqlClientError>;
|
|
186
|
+
/** Streams the triples of a graph (Graph Store `GET`). */
|
|
187
|
+
readonly getGraph: (graph: GraphTarget, options?: RequestOptions) => Stream.Stream<Quad, SparqlClientError>;
|
|
188
|
+
/** Fetches a graph as a `Dataset` (triples in the default graph). */
|
|
189
|
+
readonly getGraphDataset: (graph: GraphTarget, options?: RequestOptions) => Effect.Effect<Dataset, SparqlClientError>;
|
|
190
|
+
/** Whether a graph exists (Graph Store `HEAD`). */
|
|
191
|
+
readonly hasGraph: (graph: GraphTarget, options?: RequestOptions) => Effect.Effect<boolean, SparqlClientError>;
|
|
192
|
+
/** Replaces a graph (Graph Store `PUT`). */
|
|
193
|
+
readonly putGraph: (graph: GraphTarget, triples: Iterable<Quad>, options?: UploadOptions) => Effect.Effect<void, SparqlClientError>;
|
|
194
|
+
/** Adds triples to a graph (Graph Store `POST`). */
|
|
195
|
+
readonly postGraph: (graph: GraphTarget, triples: Iterable<Quad>, options?: UploadOptions) => Effect.Effect<void, SparqlClientError>;
|
|
196
|
+
/** Creates a new graph in the graph store and returns its IRI. */
|
|
197
|
+
readonly createGraph: (triples: Iterable<Quad>, options?: UploadOptions) => Effect.Effect<NamedNode, SparqlClientError>;
|
|
198
|
+
/** Deletes a graph (Graph Store `DELETE`). */
|
|
199
|
+
readonly deleteGraph: (graph: GraphTarget, options?: RequestOptions) => Effect.Effect<void, SparqlClientError>;
|
|
200
|
+
}
|
|
201
|
+
declare const SparqlClient_base: Context.ServiceClass<SparqlClient, "@thomasfosterau/effect-rdf/sparql/SparqlClient", SparqlClientShape>;
|
|
202
|
+
/**
|
|
203
|
+
* The SPARQL client service.
|
|
204
|
+
*
|
|
205
|
+
* @since 0.1.0
|
|
206
|
+
* @category services
|
|
207
|
+
*/
|
|
208
|
+
declare class SparqlClient extends SparqlClient_base {}
|
|
209
|
+
/**
|
|
210
|
+
* The default `Accept` header of `SELECT` / `ASK` requests.
|
|
211
|
+
*
|
|
212
|
+
* @since 0.1.0
|
|
213
|
+
* @category constants
|
|
214
|
+
*/
|
|
215
|
+
declare const DEFAULT_RESULTS_ACCEPT = "application/sparql-results+json, application/sparql-results+xml;q=0.9, text/tab-separated-values;q=0.8, text/csv;q=0.5";
|
|
216
|
+
/**
|
|
217
|
+
* The SPARQL text of a query or update input.
|
|
218
|
+
*
|
|
219
|
+
* @since 0.1.0
|
|
220
|
+
* @category utils
|
|
221
|
+
*/
|
|
222
|
+
declare const toSparql: (input: QueryInput | UpdateInput) => string;
|
|
223
|
+
/**
|
|
224
|
+
* Builds a client from configuration, using the `HttpClient` from the context
|
|
225
|
+
* and the `Serialization.Formats` service when provided (the default formats
|
|
226
|
+
* otherwise).
|
|
227
|
+
*
|
|
228
|
+
* @since 0.1.0
|
|
229
|
+
* @category constructors
|
|
230
|
+
*/
|
|
231
|
+
declare const make: (config: Config) => Effect.Effect<SparqlClientShape, never, HttpClient.HttpClient>;
|
|
232
|
+
/**
|
|
233
|
+
* A layer providing the client (requires an `HttpClient`, e.g.
|
|
234
|
+
* `FetchHttpClient.layer`).
|
|
235
|
+
*
|
|
236
|
+
* @since 0.1.0
|
|
237
|
+
* @category layers
|
|
238
|
+
*/
|
|
239
|
+
declare const layer: (config: Config) => Layer.Layer<SparqlClient, never, HttpClient.HttpClient>;
|
|
240
|
+
/**
|
|
241
|
+
* The type of the {@link select} accessor: `SparqlClientShape['select']`
|
|
242
|
+
* with the `SparqlClient` taken from the context.
|
|
243
|
+
*
|
|
244
|
+
* @since 0.1.0
|
|
245
|
+
* @category accessors
|
|
246
|
+
*/
|
|
247
|
+
interface SelectAccessor {
|
|
248
|
+
<R extends string, O extends string>(query: Builder<'Select', R, O>, options?: QueryOptions): Stream.Stream<Row$1<R, O>, SparqlClientError, SparqlClient>;
|
|
249
|
+
(query: string | Query, options?: QueryOptions): Stream.Stream<Row, SparqlClientError, SparqlClient>;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Streams the rows of a `SELECT` query with the `SparqlClient` from the
|
|
253
|
+
* context. Builder queries produce typed rows.
|
|
254
|
+
*
|
|
255
|
+
* @since 0.1.0
|
|
256
|
+
* @category accessors
|
|
257
|
+
*/
|
|
258
|
+
declare const select: SelectAccessor;
|
|
259
|
+
/**
|
|
260
|
+
* Streams the rows of a `SELECT` query decoded with a schema (whose fields
|
|
261
|
+
* are typically `TermSchema` codecs).
|
|
262
|
+
*
|
|
263
|
+
* @since 0.1.0
|
|
264
|
+
* @category accessors
|
|
265
|
+
*/
|
|
266
|
+
declare const decode: <A, RD>(query: QueryInput, schema: Schema.Decoder<A, RD>, options?: QueryOptions) => Stream.Stream<A, SparqlClientError | Schema.SchemaError, SparqlClient | RD>;
|
|
267
|
+
/**
|
|
268
|
+
* Evaluates an `ASK` query with the `SparqlClient` from the context.
|
|
269
|
+
*
|
|
270
|
+
* @since 0.1.0
|
|
271
|
+
* @category accessors
|
|
272
|
+
*/
|
|
273
|
+
declare const ask: (query: QueryInput, options?: QueryOptions) => Effect.Effect<boolean, SparqlClientError, SparqlClient>;
|
|
274
|
+
/**
|
|
275
|
+
* Streams the triples of a `CONSTRUCT` / `DESCRIBE` query with the
|
|
276
|
+
* `SparqlClient` from the context.
|
|
277
|
+
*
|
|
278
|
+
* @since 0.1.0
|
|
279
|
+
* @category accessors
|
|
280
|
+
*/
|
|
281
|
+
declare const construct: (query: QueryInput, options?: QueryOptions) => Stream.Stream<Quad, SparqlClientError, SparqlClient>;
|
|
282
|
+
/**
|
|
283
|
+
* Executes an update with the `SparqlClient` from the context.
|
|
284
|
+
*
|
|
285
|
+
* @since 0.1.0
|
|
286
|
+
* @category accessors
|
|
287
|
+
*/
|
|
288
|
+
declare const update: (input: UpdateInput, options?: UpdateOptions) => Effect.Effect<void, SparqlClientError, SparqlClient>;
|
|
289
|
+
export { select as C, make as S, update as T, UploadOptions as _, Method as a, decode as b, QueryResult as c, SelectAccessor as d, SparqlClient as f, UpdateOptions as g, UpdateInput as h, GraphTarget as i, RequestOptions as l, SparqlClient_d_exports as m, DEFAULT_RESULTS_ACCEPT as n, QueryInput as o, SparqlClientShape as p, GraphIri as r, QueryOptions as s, Config as t, Row as u, ask as v, toSparql as w, layer as x, construct as y };
|
|
290
|
+
//# sourceMappingURL=SparqlClient-UPc88SHy.d.mts.map
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { n as Dataset } from "./Dataset-DS3ESOcO.mjs";
|
|
2
|
+
import { a as Formats } from "./Serialization-Df8iVauT.mjs";
|
|
3
|
+
import { a as QuadStore } from "./Store-D0jmVfb3.mjs";
|
|
4
|
+
import { o as SparqlEngine, t as EngineOptions } from "./Engine-CYPB3g4h.mjs";
|
|
5
|
+
import { n as Options } from "./Options-BommQwP9.mjs";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Layer from "effect/Layer";
|
|
8
|
+
import * as HttpServerRequest from "effect/http/HttpServerRequest";
|
|
9
|
+
import * as HttpServerResponse from "effect/http/HttpServerResponse";
|
|
10
|
+
import * as HttpRouter from "effect/http/HttpRouter";
|
|
11
|
+
import * as HttpServer from "effect/http/HttpServer";
|
|
12
|
+
declare namespace SparqlServer_d_exports {
|
|
13
|
+
export { Requirements, graphStoreHandler, handler, layerMemoryServices, layerRoutes, layerServe, sparqlHandler };
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The services a server needs.
|
|
17
|
+
*
|
|
18
|
+
* @since 0.1.0
|
|
19
|
+
* @category models
|
|
20
|
+
*/
|
|
21
|
+
type Requirements = SparqlEngine | QuadStore | Formats;
|
|
22
|
+
/**
|
|
23
|
+
* The SPARQL endpoint (query, update and service description) as an HTTP
|
|
24
|
+
* app.
|
|
25
|
+
*
|
|
26
|
+
* @since 0.1.0
|
|
27
|
+
* @category handlers
|
|
28
|
+
*/
|
|
29
|
+
declare const sparqlHandler: (options?: Options) => Effect.Effect<HttpServerResponse.HttpServerResponse, never, HttpServerRequest.HttpServerRequest | Requirements>;
|
|
30
|
+
/**
|
|
31
|
+
* The Graph Store Protocol endpoint as an HTTP app.
|
|
32
|
+
*
|
|
33
|
+
* @since 0.1.0
|
|
34
|
+
* @category handlers
|
|
35
|
+
*/
|
|
36
|
+
declare const graphStoreHandler: (options?: Options) => Effect.Effect<HttpServerResponse.HttpServerResponse, never, HttpServerRequest.HttpServerRequest | QuadStore | Formats>;
|
|
37
|
+
/**
|
|
38
|
+
* The whole server as one HTTP app: routes requests to the SPARQL endpoint(s)
|
|
39
|
+
* and the graph store by path, and answers `404` otherwise.
|
|
40
|
+
*
|
|
41
|
+
* @since 0.1.0
|
|
42
|
+
* @category handlers
|
|
43
|
+
*/
|
|
44
|
+
declare const handler: (options?: Options) => Effect.Effect<HttpServerResponse.HttpServerResponse, never, HttpServerRequest.HttpServerRequest | Requirements>;
|
|
45
|
+
/**
|
|
46
|
+
* Registers the server's routes on the `HttpRouter`: the SPARQL endpoint(s),
|
|
47
|
+
* the graph store root and everything below it (direct graph
|
|
48
|
+
* identification).
|
|
49
|
+
*
|
|
50
|
+
* @since 0.1.0
|
|
51
|
+
* @category layers
|
|
52
|
+
*/
|
|
53
|
+
declare const layerRoutes: (options?: Options) => Layer.Layer<never, never, HttpRouter.HttpRouter | HttpRouter.Request.From<"Requires", Requirements>>;
|
|
54
|
+
/**
|
|
55
|
+
* Serves the routes with `HttpRouter.serve` on an `HttpServer` from the
|
|
56
|
+
* context (logging requests unless `logging: false`).
|
|
57
|
+
*
|
|
58
|
+
* @since 0.1.0
|
|
59
|
+
* @category layers
|
|
60
|
+
*/
|
|
61
|
+
declare const layerServe: (options?: Options) => Layer.Layer<never, never, HttpServer.HttpServer | Requirements>;
|
|
62
|
+
/**
|
|
63
|
+
* The services of an in-memory server: the engine over an in-memory store
|
|
64
|
+
* (optionally pre-loaded) and the default formats.
|
|
65
|
+
*
|
|
66
|
+
* @since 0.1.0
|
|
67
|
+
* @category layers
|
|
68
|
+
*/
|
|
69
|
+
declare const layerMemoryServices: (data?: Dataset, engineOptions?: EngineOptions) => Layer.Layer<Requirements>;
|
|
70
|
+
export { layerMemoryServices as a, sparqlHandler as c, handler as i, SparqlServer_d_exports as n, layerRoutes as o, graphStoreHandler as r, layerServe as s, Requirements as t };
|
|
71
|
+
//# sourceMappingURL=SparqlServer-CbUW-pVj.d.mts.map
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D8jQpDG7.mjs";
|
|
2
|
+
import { s as make } from "./PrefixMap-BHFPDLO-.mjs";
|
|
3
|
+
import { t as Formats } from "./Serialization-DP9H5bYQ.mjs";
|
|
4
|
+
import { n as SparqlEngine, r as layer } from "./Engine-DF8PN7g-.mjs";
|
|
5
|
+
import { i as parseQuery, s as parseUpdate } from "./Parser-xARsOWXk.mjs";
|
|
6
|
+
import { i as layerMemory, t as QuadStore } from "./Store-DH3Ow1GO.mjs";
|
|
7
|
+
import { d as codecs, m as negotiate } from "./Results-peJjGA2V.mjs";
|
|
8
|
+
import { a as internal, c as notFound, i as forbidden, l as timeout, r as badRequest, s as notAcceptable, u as toResponse } from "./ProtocolErrors-czDPVcX5.mjs";
|
|
9
|
+
import { a as serializerMediaTypes, i as negotiateSerializer, r as layer$1 } from "./ServerFormats-CrRnjjf6.mjs";
|
|
10
|
+
import { i as resolve, n as requestPath, r as requestUrl } from "./Options-BLBGL4HE.mjs";
|
|
11
|
+
import { o as decode } from "./Protocol-BA7OkNgp.mjs";
|
|
12
|
+
import { n as handle } from "./GraphStore-DvbqwKy1.mjs";
|
|
13
|
+
import { r as describe, t as SD } from "./ServiceDescription-Dq5hxeGy.mjs";
|
|
14
|
+
import * as Arr from "effect/Array";
|
|
15
|
+
import * as Option from "effect/Option";
|
|
16
|
+
import * as Predicate from "effect/Predicate";
|
|
17
|
+
import * as Schema from "effect/Schema";
|
|
18
|
+
import * as Effect from "effect/Effect";
|
|
19
|
+
import * as Match from "effect/Match";
|
|
20
|
+
import * as Layer from "effect/Layer";
|
|
21
|
+
import * as Stream from "effect/Stream";
|
|
22
|
+
import * as Headers from "effect/http/Headers";
|
|
23
|
+
import * as Cause from "effect/Cause";
|
|
24
|
+
import * as HttpServerRequest from "effect/http/HttpServerRequest";
|
|
25
|
+
import * as HttpServerResponse from "effect/http/HttpServerResponse";
|
|
26
|
+
import * as HttpMiddleware from "effect/http/HttpMiddleware";
|
|
27
|
+
import * as HttpRouter from "effect/http/HttpRouter";
|
|
28
|
+
import * as Fiber from "effect/Fiber";
|
|
29
|
+
import * as Queue from "effect/Queue";
|
|
30
|
+
// src/sparql/internal/prefetch.ts
|
|
31
|
+
/** Raised when a query exceeds its time limit. */
|
|
32
|
+
var QueryTimeout = class extends Schema.TaggedError()("QueryTimeout", {}) {};
|
|
33
|
+
/**
|
|
34
|
+
* Starts evaluating a stream in the background and waits for its first
|
|
35
|
+
* element (or its end or failure), so that errors raised before the first
|
|
36
|
+
* result — and a timeout — can still be answered with a proper HTTP status.
|
|
37
|
+
* The returned stream yields every element; the whole evaluation is limited
|
|
38
|
+
* by `timeout` when given.
|
|
39
|
+
*/
|
|
40
|
+
const prefetch = (stream, timeout) => Effect.gen(function* () {
|
|
41
|
+
const queue = yield* Queue.bounded(256);
|
|
42
|
+
const run = Stream.runIntoQueue(stream, queue);
|
|
43
|
+
const limited = timeout === void 0 ? run : Effect.timeoutOrElse(run, {
|
|
44
|
+
duration: timeout,
|
|
45
|
+
orElse: () => Queue.fail(queue, new QueryTimeout())
|
|
46
|
+
});
|
|
47
|
+
const fiber = yield* Effect.forkDetach(limited);
|
|
48
|
+
const first = yield* Queue.take(queue).pipe(Effect.map(Option.some), Effect.catchIf(Cause.isDone, () => Effect.succeed(Option.none())), Effect.onError(() => Fiber.interrupt(fiber)));
|
|
49
|
+
if (Option.isNone(first)) return Stream.empty;
|
|
50
|
+
return Stream.concat(Stream.succeed(first.value), Stream.fromQueue(queue)).pipe(Stream.ensuring(Fiber.interrupt(fiber)));
|
|
51
|
+
});
|
|
52
|
+
// src/sparql/SparqlServer.ts
|
|
53
|
+
/**
|
|
54
|
+
* A SPARQL 1.1 Protocol and Graph Store HTTP Protocol server built on
|
|
55
|
+
* `effect/http`.
|
|
56
|
+
*
|
|
57
|
+
* The server needs the `SparqlEngine` and `QuadStore` services (`Engine`,
|
|
58
|
+
* `Store`) and the core `Serialization.Formats`
|
|
59
|
+
* service (see `ServerFormats.layer` for the defaults). It is available as
|
|
60
|
+
*
|
|
61
|
+
* - `handler(options)`: a plain HTTP app (`Effect` of a response, given the
|
|
62
|
+
* `HttpServerRequest`) that routes the endpoint paths itself;
|
|
63
|
+
* - `layerRoutes(options)`: routes registered on an `HttpRouter`, to mount
|
|
64
|
+
* into your own server;
|
|
65
|
+
* - `layerServe(options)`: the routes served on the `HttpServer` from the
|
|
66
|
+
* context, whatever platform provides it.
|
|
67
|
+
*
|
|
68
|
+
* Everything here is platform-neutral. A complete Node HTTP server (and the
|
|
69
|
+
* `effect-sparql-server` command) is `NodeSparqlServer` in
|
|
70
|
+
* `@thomasfosterau/effect-sparql-node`.
|
|
71
|
+
*
|
|
72
|
+
* @since 0.1.0
|
|
73
|
+
*/
|
|
74
|
+
var SparqlServer_exports = /* @__PURE__ */ __exportAll({
|
|
75
|
+
graphStoreHandler: () => graphStoreHandler,
|
|
76
|
+
handler: () => handler,
|
|
77
|
+
layerMemoryServices: () => layerMemoryServices,
|
|
78
|
+
layerRoutes: () => layerRoutes,
|
|
79
|
+
layerServe: () => layerServe,
|
|
80
|
+
sparqlHandler: () => sparqlHandler
|
|
81
|
+
});
|
|
82
|
+
const formatParseError = (e) => `Syntax error at line ${e.line}, column ${e.column}: ${e.message}`;
|
|
83
|
+
const fromEngineError = (failure) => {
|
|
84
|
+
return Match.value(failure).pipe(Match.tag("SparqlParseError", (e) => badRequest(formatParseError(e))), Match.tag("UpdateError", (e) => badRequest(e.message)), Match.tag("EvaluationError", (e) => internal(e.message)), Match.tag("StoreError", (e) => internal(e.message)), Match.tag("QueryTimeout", () => timeout("The request exceeded the time limit")), Match.exhaustive);
|
|
85
|
+
};
|
|
86
|
+
const withTimeout = (effect, timeout) => timeout === void 0 ? effect : Effect.timeoutOrElse(effect, {
|
|
87
|
+
duration: timeout,
|
|
88
|
+
orElse: () => Effect.fail(new QueryTimeout())
|
|
89
|
+
});
|
|
90
|
+
const charsetUtf8 = (mediaType) => `${mediaType}; charset=utf-8`;
|
|
91
|
+
const isGraphForm = (q) => Predicate.isTagged(q, "Construct") || Predicate.isTagged(q, "Describe");
|
|
92
|
+
const runQuery = (options, operation, baseIri) => Effect.gen(function* () {
|
|
93
|
+
const request = yield* HttpServerRequest.HttpServerRequest;
|
|
94
|
+
const engine = yield* SparqlEngine;
|
|
95
|
+
const formats = yield* Formats;
|
|
96
|
+
const accept = request.headers["accept"];
|
|
97
|
+
yield* Effect.annotateCurrentSpan({ "sparql.query": operation.query });
|
|
98
|
+
yield* Effect.logDebug("SPARQL query").pipe(Effect.annotateLogs({ query: operation.query }));
|
|
99
|
+
const parsed = yield* parseQuery(operation.query, { baseIri }).pipe(Effect.mapError((e) => badRequest(formatParseError(e))));
|
|
100
|
+
const query = operation.dataset !== void 0 ? {
|
|
101
|
+
...parsed,
|
|
102
|
+
dataset: void 0
|
|
103
|
+
} : parsed;
|
|
104
|
+
const requestOptions = {
|
|
105
|
+
baseIri,
|
|
106
|
+
dataset: operation.dataset
|
|
107
|
+
};
|
|
108
|
+
if (isGraphForm(query)) {
|
|
109
|
+
const serializer = negotiateSerializer(formats, accept);
|
|
110
|
+
if (serializer === void 0) return yield* notAcceptable(accept ?? "", serializerMediaTypes(formats));
|
|
111
|
+
const constructed = Effect.flatMap(engine.construct(query, requestOptions), (s) => prefetch(options.maxResults === void 0 ? s : Stream.take(s, options.maxResults), options.queryTimeout));
|
|
112
|
+
const quads = yield* Effect.mapError(withTimeout(constructed, options.queryTimeout), fromEngineError);
|
|
113
|
+
const body = serializer.serializeStream(quads, { prefixes: make(options.prefixes) });
|
|
114
|
+
return HttpServerResponse.stream(Stream.encodeText(body), { contentType: charsetUtf8(serializer.format.mediaType) });
|
|
115
|
+
}
|
|
116
|
+
const codec = negotiate(accept);
|
|
117
|
+
if (Option.isNone(codec)) return yield* notAcceptable(accept ?? "", codecs.flatMap((c) => c.format.mediaTypes));
|
|
118
|
+
const evaluated = Effect.flatMap(engine.query(query, requestOptions), (r) => {
|
|
119
|
+
if (Predicate.isTagged(r, "Ask")) return Effect.succeedSome(r);
|
|
120
|
+
if (!Predicate.isTagged(r, "Select")) return Effect.succeedNone;
|
|
121
|
+
const bindings = options.maxResults === void 0 ? r.bindings : Stream.take(r.bindings, options.maxResults);
|
|
122
|
+
return Effect.map(prefetch(bindings, options.queryTimeout), (b) => Option.some({
|
|
123
|
+
...r,
|
|
124
|
+
bindings: b
|
|
125
|
+
}));
|
|
126
|
+
});
|
|
127
|
+
const result = yield* Effect.mapError(withTimeout(evaluated, options.queryTimeout), fromEngineError);
|
|
128
|
+
if (Option.isNone(result)) return yield* internal("Unexpected graph result");
|
|
129
|
+
const body = codec.value.serialize(result.value);
|
|
130
|
+
return HttpServerResponse.stream(Stream.encodeText(body), { contentType: charsetUtf8(codec.value.format.mediaType) });
|
|
131
|
+
}).pipe(Effect.withSpan("SparqlServer.query"));
|
|
132
|
+
const declaresDataset = (op) => Predicate.isTagged(op, "Modify") && (op.using !== void 0 || op.with !== void 0);
|
|
133
|
+
const runUpdate = (options, operation, baseIri) => Effect.gen(function* () {
|
|
134
|
+
const engine = yield* SparqlEngine;
|
|
135
|
+
yield* Effect.annotateCurrentSpan({ "sparql.update": operation.update });
|
|
136
|
+
yield* Effect.logDebug("SPARQL update").pipe(Effect.annotateLogs({ update: operation.update }));
|
|
137
|
+
if (options.readOnly) return yield* forbidden("This endpoint is read-only");
|
|
138
|
+
const update = yield* parseUpdate(operation.update, { baseIri }).pipe(Effect.mapError((e) => badRequest(formatParseError(e))));
|
|
139
|
+
if (operation.using !== void 0 && update.operations.some(declaresDataset)) return yield* badRequest("using-graph-uri / using-named-graph-uri cannot be combined with USING, USING NAMED or WITH");
|
|
140
|
+
yield* Effect.mapError(withTimeout(engine.update(update, {
|
|
141
|
+
baseIri,
|
|
142
|
+
dataset: operation.using
|
|
143
|
+
}), options.updateTimeout), fromEngineError);
|
|
144
|
+
return HttpServerResponse.empty({ status: 204 });
|
|
145
|
+
}).pipe(Effect.withSpan("SparqlServer.update"));
|
|
146
|
+
const serviceDescription = (options, url) => Effect.gen(function* () {
|
|
147
|
+
const request = yield* HttpServerRequest.HttpServerRequest;
|
|
148
|
+
const store = yield* QuadStore;
|
|
149
|
+
const formats = yield* Formats;
|
|
150
|
+
const accept = request.headers["accept"];
|
|
151
|
+
const serializer = negotiateSerializer(formats, accept);
|
|
152
|
+
if (serializer === void 0) return yield* notAcceptable(accept ?? "", serializerMediaTypes(formats));
|
|
153
|
+
const graphs = yield* Stream.runCollect(Stream.take(store.graphs, 1e3)).pipe(Effect.mapError((e) => internal(e.message)));
|
|
154
|
+
const endpoint = new URL(options.path, url).href;
|
|
155
|
+
const quads = describe({
|
|
156
|
+
endpoint,
|
|
157
|
+
updateEndpoint: options.readOnly ? void 0 : new URL(options.updatePath, url).href,
|
|
158
|
+
formats,
|
|
159
|
+
unionDefaultGraph: options.unionDefaultGraph,
|
|
160
|
+
federation: options.federation,
|
|
161
|
+
namedGraphs: graphs.filter((g) => Predicate.isTagged(g, "NamedNode"))
|
|
162
|
+
});
|
|
163
|
+
const text = yield* serializer.serialize(quads, { prefixes: make({
|
|
164
|
+
sd: SD,
|
|
165
|
+
...options.prefixes
|
|
166
|
+
}) }).pipe(Effect.mapError((e) => internal(e.message)));
|
|
167
|
+
const contentType = charsetUtf8(serializer.format.mediaType);
|
|
168
|
+
return request.method === "HEAD" ? HttpServerResponse.empty({
|
|
169
|
+
status: 200,
|
|
170
|
+
headers: { "content-type": contentType }
|
|
171
|
+
}) : HttpServerResponse.text(text, { contentType });
|
|
172
|
+
}).pipe(Effect.withSpan("SparqlServer.serviceDescription"));
|
|
173
|
+
const endpoint = (options, kind) => Effect.gen(function* () {
|
|
174
|
+
const request = yield* HttpServerRequest.HttpServerRequest;
|
|
175
|
+
const url = requestUrl(request, options);
|
|
176
|
+
const base = new URL(url.href);
|
|
177
|
+
base.search = "";
|
|
178
|
+
const baseIri = options.baseIri ?? base.href;
|
|
179
|
+
const decoded = yield* decode(request, kind, baseIri);
|
|
180
|
+
return yield* Match.value(decoded).pipe(Match.tag("Query", (operation) => Effect.gen(function* () {
|
|
181
|
+
return yield* runQuery(options, operation, baseIri);
|
|
182
|
+
})), Match.tag("Update", (operation) => Effect.gen(function* () {
|
|
183
|
+
return yield* runUpdate(options, operation, baseIri);
|
|
184
|
+
})), Match.tag("ServiceDescription", () => Effect.gen(function* () {
|
|
185
|
+
if (!options.serviceDescription) return yield* badRequest("Missing 'query' parameter");
|
|
186
|
+
return yield* serviceDescription(options, url);
|
|
187
|
+
})), Match.exhaustive);
|
|
188
|
+
});
|
|
189
|
+
const corsHeaders = (cors, request, preflight) => {
|
|
190
|
+
const headers = {};
|
|
191
|
+
const origin = request.headers["origin"];
|
|
192
|
+
const allowed = cors.allowedOrigins;
|
|
193
|
+
if (allowed === void 0 || Arr.isReadonlyArrayEmpty(allowed)) headers["access-control-allow-origin"] = "*";
|
|
194
|
+
else if (origin !== void 0 && allowed.includes(origin)) {
|
|
195
|
+
headers["access-control-allow-origin"] = origin;
|
|
196
|
+
headers["vary"] = "Origin";
|
|
197
|
+
} else headers["vary"] = "Origin";
|
|
198
|
+
if (cors.credentials === true) headers["access-control-allow-credentials"] = "true";
|
|
199
|
+
if (cors.exposedHeaders !== void 0 && Arr.isReadonlyArrayNonEmpty(cors.exposedHeaders)) headers["access-control-expose-headers"] = cors.exposedHeaders.join(", ");
|
|
200
|
+
if (preflight) {
|
|
201
|
+
headers["access-control-allow-methods"] = "GET, HEAD, POST, PUT, DELETE, OPTIONS";
|
|
202
|
+
const requested = request.headers["access-control-request-headers"];
|
|
203
|
+
if (cors.allowedHeaders !== void 0 && Arr.isReadonlyArrayNonEmpty(cors.allowedHeaders)) headers["access-control-allow-headers"] = cors.allowedHeaders.join(", ");
|
|
204
|
+
else if (requested !== void 0) headers["access-control-allow-headers"] = requested;
|
|
205
|
+
if (cors.maxAge !== void 0) headers["access-control-max-age"] = String(cors.maxAge);
|
|
206
|
+
}
|
|
207
|
+
return headers;
|
|
208
|
+
};
|
|
209
|
+
const withCors = (options) => (app) => {
|
|
210
|
+
const cors = options.cors;
|
|
211
|
+
if (cors === void 0) return app;
|
|
212
|
+
return Effect.flatMap(HttpServerRequest.HttpServerRequest, (request) => request.method === "OPTIONS" ? Effect.succeed(HttpServerResponse.empty({
|
|
213
|
+
status: 204,
|
|
214
|
+
headers: corsHeaders(cors, request, true)
|
|
215
|
+
})) : Effect.map(app, (response) => HttpServerResponse.setHeaders(response, Headers.fromInput(corsHeaders(cors, request, false)))));
|
|
216
|
+
};
|
|
217
|
+
const recover = (app) => Effect.catchTag(app, "ProtocolError", (e) => Effect.as(e.status >= 500 ? Effect.logError("SPARQL request failed", e.message) : Effect.logDebug("SPARQL request rejected", e.status, e.message), toResponse(e)));
|
|
218
|
+
const finish = (options) => (app) => {
|
|
219
|
+
const handled = withCors(options)(recover(app));
|
|
220
|
+
return options.logging ? HttpMiddleware.logger(handled) : handled;
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* The SPARQL endpoint (query, update and service description) as an HTTP
|
|
224
|
+
* app.
|
|
225
|
+
*
|
|
226
|
+
* @since 0.1.0
|
|
227
|
+
* @category handlers
|
|
228
|
+
*/
|
|
229
|
+
const sparqlHandler = (options) => {
|
|
230
|
+
const resolved = resolve(options);
|
|
231
|
+
return endpointFor(resolved, resolved.path);
|
|
232
|
+
};
|
|
233
|
+
const endpointFor = (resolved, path) => finish(resolved)(endpoint(resolved, {
|
|
234
|
+
query: path === resolved.path,
|
|
235
|
+
update: path === resolved.updatePath
|
|
236
|
+
}));
|
|
237
|
+
/**
|
|
238
|
+
* The Graph Store Protocol endpoint as an HTTP app.
|
|
239
|
+
*
|
|
240
|
+
* @since 0.1.0
|
|
241
|
+
* @category handlers
|
|
242
|
+
*/
|
|
243
|
+
const graphStoreHandler = (options) => {
|
|
244
|
+
const resolved = resolve(options);
|
|
245
|
+
return finish(resolved)(handle(resolved, resolved.graphStorePath ?? "/"));
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* The whole server as one HTTP app: routes requests to the SPARQL endpoint(s)
|
|
249
|
+
* and the graph store by path, and answers `404` otherwise.
|
|
250
|
+
*
|
|
251
|
+
* @since 0.1.0
|
|
252
|
+
* @category handlers
|
|
253
|
+
*/
|
|
254
|
+
const handler = (options) => {
|
|
255
|
+
const resolved = resolve(options);
|
|
256
|
+
const query = endpointFor(resolved, resolved.path);
|
|
257
|
+
const update = resolved.updatePath === resolved.path ? query : endpointFor(resolved, resolved.updatePath);
|
|
258
|
+
const gsp = resolved.graphStorePath === void 0 ? void 0 : finish(resolved)(handle(resolved, resolved.graphStorePath));
|
|
259
|
+
const notFound$1 = finish(resolved)(Effect.fail(notFound("Not found")));
|
|
260
|
+
return Effect.flatMap(HttpServerRequest.HttpServerRequest, (request) => {
|
|
261
|
+
const path = requestPath(request.url);
|
|
262
|
+
if (path === resolved.path) return query;
|
|
263
|
+
if (path === resolved.updatePath) return update;
|
|
264
|
+
if (gsp !== void 0 && resolved.graphStorePath !== void 0 && (path === resolved.graphStorePath || path.startsWith(`${resolved.graphStorePath}/`))) return gsp;
|
|
265
|
+
return notFound$1;
|
|
266
|
+
});
|
|
267
|
+
};
|
|
268
|
+
/**
|
|
269
|
+
* Registers the server's routes on the `HttpRouter`: the SPARQL endpoint(s),
|
|
270
|
+
* the graph store root and everything below it (direct graph
|
|
271
|
+
* identification).
|
|
272
|
+
*
|
|
273
|
+
* @since 0.1.0
|
|
274
|
+
* @category layers
|
|
275
|
+
*/
|
|
276
|
+
const layerRoutes = (options) => {
|
|
277
|
+
const resolved = resolve(options);
|
|
278
|
+
return HttpRouter.use((router) => Effect.gen(function* () {
|
|
279
|
+
yield* router.add("*", resolved.path, endpointFor(resolved, resolved.path));
|
|
280
|
+
if (resolved.updatePath !== resolved.path) yield* router.add("*", resolved.updatePath, endpointFor(resolved, resolved.updatePath));
|
|
281
|
+
if (resolved.graphStorePath !== void 0) {
|
|
282
|
+
const gsp = finish(resolved)(handle(resolved, resolved.graphStorePath));
|
|
283
|
+
yield* router.add("*", `${resolved.graphStorePath}/*`, gsp);
|
|
284
|
+
}
|
|
285
|
+
}));
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
288
|
+
* Serves the routes with `HttpRouter.serve` on an `HttpServer` from the
|
|
289
|
+
* context (logging requests unless `logging: false`).
|
|
290
|
+
*
|
|
291
|
+
* @since 0.1.0
|
|
292
|
+
* @category layers
|
|
293
|
+
*/
|
|
294
|
+
const layerServe = (options) => HttpRouter.serve(layerRoutes({
|
|
295
|
+
...options,
|
|
296
|
+
logging: false
|
|
297
|
+
}), { disableLogger: options?.logging === false });
|
|
298
|
+
/**
|
|
299
|
+
* The services of an in-memory server: the engine over an in-memory store
|
|
300
|
+
* (optionally pre-loaded) and the default formats.
|
|
301
|
+
*
|
|
302
|
+
* @since 0.1.0
|
|
303
|
+
* @category layers
|
|
304
|
+
*/
|
|
305
|
+
const layerMemoryServices = (data, engineOptions) => Layer.mergeAll(layer(engineOptions).pipe(Layer.provideMerge(layerMemory(data))), layer$1);
|
|
306
|
+
export { layerRoutes as a, layerMemoryServices as i, graphStoreHandler as n, layerServe as o, handler as r, sparqlHandler as s, SparqlServer_exports as t };
|
|
307
|
+
|
|
308
|
+
//# sourceMappingURL=SparqlServer-Db7w7Cll.mjs.map
|