@thomasfosterau/effect-rdf 0.0.0-stage → 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 +2251 -2
- 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 +195 -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,392 @@
|
|
|
1
|
+
import { _ as Quad, o as Graph } from "./Term-B_4ezyXq.mjs";
|
|
2
|
+
import { n as Dataset } from "./Dataset-DS3ESOcO.mjs";
|
|
3
|
+
import { t as PrefixMap } from "./PrefixMap-BMlXrWNd.mjs";
|
|
4
|
+
import * as Option from "effect/Option";
|
|
5
|
+
import * as Schema from "effect/Schema";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Context from "effect/Context";
|
|
8
|
+
import * as FileSystem from "effect/FileSystem";
|
|
9
|
+
import * as Layer from "effect/Layer";
|
|
10
|
+
import * as Path from "effect/Path";
|
|
11
|
+
import * as Stream from "effect/Stream";
|
|
12
|
+
import * as PlatformError from "effect/PlatformError";
|
|
13
|
+
declare namespace Serialization_d_exports {
|
|
14
|
+
export { AcceptEntry, BytesOptions, Codec, Format, Formats, ParseOptions, ParseResult, Parser, RdfParseError, RdfSerializeError, ReadFileOptions, SerializeOptions, Serializer, SpanTarget, WriteFileOptions, formatError, freshBlankNodePrefix, layer, makeCodec, makeFormat, makeParser, makeSerializer, negotiate, parseAccept, parseBytes, parseBytesDocument, parserFor, parserForExtension, readFile, serializeBytes, serializerFor, serializerForExtension, toSchema, withParseSpan, withSerializeSpan, withStreamSpan, writeFile };
|
|
15
|
+
}
|
|
16
|
+
declare const RdfParseError_base: Schema.Class<RdfParseError, Schema.TaggedStruct<"RdfParseError", {
|
|
17
|
+
readonly format: Schema.String;
|
|
18
|
+
readonly message: Schema.String;
|
|
19
|
+
readonly line: Schema.optional<Schema.Number>;
|
|
20
|
+
readonly column: Schema.optional<Schema.Number>;
|
|
21
|
+
}>, import("effect/Cause").YieldableError>;
|
|
22
|
+
/**
|
|
23
|
+
* A syntax or semantic error encountered while parsing an RDF document.
|
|
24
|
+
*
|
|
25
|
+
* @since 0.1.0
|
|
26
|
+
* @category errors
|
|
27
|
+
*/
|
|
28
|
+
declare class RdfParseError extends RdfParseError_base {}
|
|
29
|
+
declare const RdfSerializeError_base: Schema.Class<RdfSerializeError, Schema.TaggedStruct<"RdfSerializeError", {
|
|
30
|
+
readonly format: Schema.String;
|
|
31
|
+
readonly message: Schema.String;
|
|
32
|
+
}>, import("effect/Cause").YieldableError>;
|
|
33
|
+
/**
|
|
34
|
+
* An error encountered while serialising quads, e.g. a quad that cannot be
|
|
35
|
+
* represented in the target syntax (a named graph in Turtle).
|
|
36
|
+
*
|
|
37
|
+
* @since 0.1.0
|
|
38
|
+
* @category errors
|
|
39
|
+
*/
|
|
40
|
+
declare class RdfSerializeError extends RdfSerializeError_base {}
|
|
41
|
+
/**
|
|
42
|
+
* Metadata describing an RDF concrete syntax.
|
|
43
|
+
*
|
|
44
|
+
* @since 0.1.0
|
|
45
|
+
* @category models
|
|
46
|
+
*/
|
|
47
|
+
interface Format {
|
|
48
|
+
/** Human-readable name, e.g. `"Turtle"`. */
|
|
49
|
+
readonly name: string;
|
|
50
|
+
/** The preferred media type. */
|
|
51
|
+
readonly mediaType: string;
|
|
52
|
+
/** All media types (including the preferred one) that identify the syntax. */
|
|
53
|
+
readonly mediaTypes: ReadonlyArray<string>;
|
|
54
|
+
/** File extensions without the leading dot. */
|
|
55
|
+
readonly extensions: ReadonlyArray<string>;
|
|
56
|
+
/** Whether the syntax can represent named graphs. */
|
|
57
|
+
readonly datasets: boolean;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* @since 0.1.0
|
|
61
|
+
* @category constructors
|
|
62
|
+
*/
|
|
63
|
+
declare const makeFormat: (format: Omit<Format, "mediaTypes"> & {
|
|
64
|
+
readonly mediaTypes?: ReadonlyArray<string>;
|
|
65
|
+
}) => Format;
|
|
66
|
+
/**
|
|
67
|
+
* @since 0.1.0
|
|
68
|
+
* @category models
|
|
69
|
+
*/
|
|
70
|
+
interface ParseOptions {
|
|
71
|
+
/** The base IRI against which relative IRIs are resolved. */
|
|
72
|
+
readonly baseIri?: string | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* The graph in which triples are placed when parsing a triples-only syntax.
|
|
75
|
+
* Defaults to the default graph.
|
|
76
|
+
*/
|
|
77
|
+
readonly graph?: Graph | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Prefix for generated blank node labels. Defaults to a fresh prefix per
|
|
80
|
+
* document so that blank nodes from different documents never clash.
|
|
81
|
+
*/
|
|
82
|
+
readonly blankNodePrefix?: string | undefined;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* The result of parsing a complete document.
|
|
86
|
+
*
|
|
87
|
+
* @since 0.1.0
|
|
88
|
+
* @category models
|
|
89
|
+
*/
|
|
90
|
+
interface ParseResult {
|
|
91
|
+
readonly dataset: Dataset;
|
|
92
|
+
/** Prefixes declared by the document, if the syntax supports them. */
|
|
93
|
+
readonly prefixes: PrefixMap;
|
|
94
|
+
/** The final base IRI of the document, if any. */
|
|
95
|
+
readonly baseIri: string | undefined;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* @since 0.1.0
|
|
99
|
+
* @category models
|
|
100
|
+
*/
|
|
101
|
+
interface Parser<Options extends ParseOptions = ParseOptions> {
|
|
102
|
+
readonly format: Format;
|
|
103
|
+
/** Parses a complete document. */
|
|
104
|
+
readonly parse: (input: string, options?: Options) => Effect.Effect<ParseResult, RdfParseError>;
|
|
105
|
+
/** Parses a stream of text chunks into a stream of quads. */
|
|
106
|
+
readonly parseStream: <E, R>(input: Stream.Stream<string, E, R>, options?: Options) => Stream.Stream<Quad, RdfParseError | E, R>;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Builds a `Parser`. When `parseStream` is not provided the stream is
|
|
110
|
+
* buffered and parsed as a whole.
|
|
111
|
+
*
|
|
112
|
+
* @since 0.1.0
|
|
113
|
+
* @category constructors
|
|
114
|
+
*/
|
|
115
|
+
declare const makeParser: <Options extends ParseOptions = ParseOptions>(options: {
|
|
116
|
+
readonly format: Format;
|
|
117
|
+
readonly parse: (input: string, options?: Options) => Effect.Effect<ParseResult, RdfParseError>;
|
|
118
|
+
readonly parseStream?: Parser<Options>["parseStream"];
|
|
119
|
+
}) => Parser<Options>;
|
|
120
|
+
/**
|
|
121
|
+
* @since 0.1.0
|
|
122
|
+
* @category models
|
|
123
|
+
*/
|
|
124
|
+
interface SerializeOptions {
|
|
125
|
+
/** Prefixes to use for abbreviating IRIs, if the syntax supports them. */
|
|
126
|
+
readonly prefixes?: PrefixMap | undefined;
|
|
127
|
+
/** The base IRI used to relativise IRIs, if the syntax supports it. */
|
|
128
|
+
readonly baseIri?: string | undefined;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* @since 0.1.0
|
|
132
|
+
* @category models
|
|
133
|
+
*/
|
|
134
|
+
interface Serializer<Options extends SerializeOptions = SerializeOptions> {
|
|
135
|
+
readonly format: Format;
|
|
136
|
+
/** Serialises quads to a complete document. */
|
|
137
|
+
readonly serialize: (quads: Iterable<Quad>, options?: Options) => Effect.Effect<string, RdfSerializeError>;
|
|
138
|
+
/** Serialises a stream of quads to a stream of text chunks. */
|
|
139
|
+
readonly serializeStream: <E, R>(quads: Stream.Stream<Quad, E, R>, options?: Options) => Stream.Stream<string, RdfSerializeError | E, R>;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Builds a `Serializer`. When `serializeStream` is not provided the stream is
|
|
143
|
+
* buffered and serialised as a whole.
|
|
144
|
+
*
|
|
145
|
+
* @since 0.1.0
|
|
146
|
+
* @category constructors
|
|
147
|
+
*/
|
|
148
|
+
declare const makeSerializer: <Options extends SerializeOptions = SerializeOptions>(options: {
|
|
149
|
+
readonly format: Format;
|
|
150
|
+
readonly serialize: (quads: Iterable<Quad>, options?: Options) => Effect.Effect<string, RdfSerializeError>;
|
|
151
|
+
readonly serializeStream?: Serializer<Options>["serializeStream"];
|
|
152
|
+
}) => Serializer<Options>;
|
|
153
|
+
/**
|
|
154
|
+
* A parser and serializer for the same syntax.
|
|
155
|
+
*
|
|
156
|
+
* @since 0.1.0
|
|
157
|
+
* @category models
|
|
158
|
+
*/
|
|
159
|
+
interface Codec<ParseOpts extends ParseOptions = ParseOptions, SerializeOpts extends SerializeOptions = SerializeOptions> extends Parser<ParseOpts>, Serializer<SerializeOpts> {
|
|
160
|
+
/** A schema transforming documents (`string`) to `Dataset`s and back. */
|
|
161
|
+
readonly schema: Schema.Codec<Dataset, string>;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Combines a parser and serializer into a `Codec`.
|
|
165
|
+
*
|
|
166
|
+
* @since 0.1.0
|
|
167
|
+
* @category constructors
|
|
168
|
+
*/
|
|
169
|
+
declare const makeCodec: <ParseOpts extends ParseOptions, SerializeOpts extends SerializeOptions>(parser: Parser<ParseOpts>, serializer: Serializer<SerializeOpts>) => Codec<ParseOpts, SerializeOpts>;
|
|
170
|
+
/**
|
|
171
|
+
* Builds a `Schema` that decodes documents to datasets with `parser` and
|
|
172
|
+
* encodes datasets with `serializer`.
|
|
173
|
+
*
|
|
174
|
+
* @since 0.1.0
|
|
175
|
+
* @category schemas
|
|
176
|
+
*/
|
|
177
|
+
declare const toSchema: (parser: Parser<any>, serializer: Serializer<any>) => Schema.Codec<Dataset, string>;
|
|
178
|
+
/**
|
|
179
|
+
* Formats a parse error with its position.
|
|
180
|
+
*
|
|
181
|
+
* @since 0.1.0
|
|
182
|
+
* @category errors
|
|
183
|
+
*/
|
|
184
|
+
declare const formatError: (error: RdfParseError) => string;
|
|
185
|
+
declare const Formats_base: Context.ServiceClass<Formats, "@thomasfosterau/effect-rdf/Formats", {
|
|
186
|
+
readonly parsers: ReadonlyArray<Parser<any>>;
|
|
187
|
+
readonly serializers: ReadonlyArray<Serializer<any>>;
|
|
188
|
+
}>;
|
|
189
|
+
/**
|
|
190
|
+
* A registry of available parsers and serializers, used for media-type
|
|
191
|
+
* lookup and HTTP content negotiation.
|
|
192
|
+
*
|
|
193
|
+
* @since 0.1.0
|
|
194
|
+
* @category services
|
|
195
|
+
*/
|
|
196
|
+
declare class Formats extends Formats_base {}
|
|
197
|
+
/**
|
|
198
|
+
* Creates a `Formats` layer from codecs, parsers and serializers.
|
|
199
|
+
*
|
|
200
|
+
* @since 0.1.0
|
|
201
|
+
* @category layers
|
|
202
|
+
*/
|
|
203
|
+
declare const layer: (...entries: ReadonlyArray<Codec<any, any> | Parser<any> | Serializer<any>>) => Layer.Layer<Formats>;
|
|
204
|
+
/**
|
|
205
|
+
* Finds a parser for a media type (parameters such as `charset` are ignored).
|
|
206
|
+
*
|
|
207
|
+
* @since 0.1.0
|
|
208
|
+
* @category lookup
|
|
209
|
+
*/
|
|
210
|
+
declare const parserFor: (formats: Formats["Service"], mediaType: string) => Option.Option<Parser<any>>;
|
|
211
|
+
/**
|
|
212
|
+
* Finds a serializer for a media type.
|
|
213
|
+
*
|
|
214
|
+
* @since 0.1.0
|
|
215
|
+
* @category lookup
|
|
216
|
+
*/
|
|
217
|
+
declare const serializerFor: (formats: Formats["Service"], mediaType: string) => Option.Option<Serializer<any>>;
|
|
218
|
+
/**
|
|
219
|
+
* Finds a parser for a file extension (with or without leading dot).
|
|
220
|
+
*
|
|
221
|
+
* @since 0.1.0
|
|
222
|
+
* @category lookup
|
|
223
|
+
*/
|
|
224
|
+
declare const parserForExtension: (formats: Formats["Service"], extension: string) => Option.Option<Parser<any>>;
|
|
225
|
+
/**
|
|
226
|
+
* Finds a serializer for a file extension (with or without leading dot).
|
|
227
|
+
*
|
|
228
|
+
* @since 0.1.0
|
|
229
|
+
* @category lookup
|
|
230
|
+
*/
|
|
231
|
+
declare const serializerForExtension: (formats: Formats["Service"], extension: string) => Option.Option<Serializer<any>>;
|
|
232
|
+
/**
|
|
233
|
+
* A parsed `Accept` header entry.
|
|
234
|
+
*
|
|
235
|
+
* @since 0.1.0
|
|
236
|
+
* @category negotiation
|
|
237
|
+
*/
|
|
238
|
+
interface AcceptEntry {
|
|
239
|
+
readonly mediaType: string;
|
|
240
|
+
readonly q: number;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Parses an HTTP `Accept` header, sorted by preference.
|
|
244
|
+
*
|
|
245
|
+
* @since 0.1.0
|
|
246
|
+
* @category negotiation
|
|
247
|
+
*/
|
|
248
|
+
declare const parseAccept: (header: string) => ReadonlyArray<AcceptEntry>;
|
|
249
|
+
/**
|
|
250
|
+
* Selects the best of `available` media types for an `Accept` header.
|
|
251
|
+
* Returns the first available type when the header is empty or absent.
|
|
252
|
+
*
|
|
253
|
+
* @since 0.1.0
|
|
254
|
+
* @category negotiation
|
|
255
|
+
*/
|
|
256
|
+
declare const negotiate: (accept: string | undefined, available: ReadonlyArray<string>) => Option.Option<string>;
|
|
257
|
+
/**
|
|
258
|
+
* Generates a fresh blank node label prefix for a parsed document.
|
|
259
|
+
*
|
|
260
|
+
* @since 0.1.0
|
|
261
|
+
* @category utils
|
|
262
|
+
*/
|
|
263
|
+
declare const freshBlankNodePrefix: () => string;
|
|
264
|
+
/**
|
|
265
|
+
* Options for reading bytes: a parser's options plus the text encoding.
|
|
266
|
+
*
|
|
267
|
+
* @since 0.1.0
|
|
268
|
+
* @category models
|
|
269
|
+
*/
|
|
270
|
+
interface BytesOptions {
|
|
271
|
+
/**
|
|
272
|
+
* The character encoding of the input, as in a `charset` media-type
|
|
273
|
+
* parameter. Defaults to UTF-8, which is validated strictly; a leading byte
|
|
274
|
+
* order mark is dropped.
|
|
275
|
+
*/
|
|
276
|
+
readonly charset?: string | undefined;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Parses a stream of bytes (from `FileSystem.stream`, an HTTP body, a socket
|
|
280
|
+
* or a child process) into a stream of quads. The bytes are decoded as UTF-8
|
|
281
|
+
* by default (or as `options.charset`), across chunk boundaries; ill-formed
|
|
282
|
+
* input fails with an `RdfParseError` at the line and column of the bad
|
|
283
|
+
* byte, never a defect.
|
|
284
|
+
*
|
|
285
|
+
* @since 0.1.0
|
|
286
|
+
* @category parsing
|
|
287
|
+
*/
|
|
288
|
+
declare const parseBytes: <Options extends ParseOptions, E, R>(parser: Parser<Options>, input: Stream.Stream<Uint8Array, E, R>, options?: Options & BytesOptions) => Stream.Stream<Quad, RdfParseError | E, R>;
|
|
289
|
+
/**
|
|
290
|
+
* Decodes a complete document's bytes as `parseBytes` does, then parses it
|
|
291
|
+
* with `parser.parse` (so the result keeps the document's prefixes and base).
|
|
292
|
+
*
|
|
293
|
+
* @since 0.1.0
|
|
294
|
+
* @category parsing
|
|
295
|
+
*/
|
|
296
|
+
declare const parseBytesDocument: <Options extends ParseOptions>(parser: Parser<Options>, input: Uint8Array, options?: Options & BytesOptions) => Effect.Effect<ParseResult, RdfParseError>;
|
|
297
|
+
/**
|
|
298
|
+
* Serialises quads to a stream of UTF-8 bytes.
|
|
299
|
+
*
|
|
300
|
+
* @since 0.1.0
|
|
301
|
+
* @category serializing
|
|
302
|
+
*/
|
|
303
|
+
declare const serializeBytes: <Options extends SerializeOptions>(serializer: Serializer<Options>, quads: Iterable<Quad>, options?: Options) => Stream.Stream<Uint8Array, RdfSerializeError>;
|
|
304
|
+
/**
|
|
305
|
+
* Options for `readFile`.
|
|
306
|
+
*
|
|
307
|
+
* @since 0.1.0
|
|
308
|
+
* @category models
|
|
309
|
+
*/
|
|
310
|
+
interface ReadFileOptions extends ParseOptions, BytesOptions {
|
|
311
|
+
/** The parser to use; otherwise one is chosen by `mediaType` or the file extension. */
|
|
312
|
+
readonly parser?: Parser<any> | undefined;
|
|
313
|
+
/** A media type to find the parser by in the `Formats` service. */
|
|
314
|
+
readonly mediaType?: string | undefined;
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Options for `writeFile`.
|
|
318
|
+
*
|
|
319
|
+
* @since 0.1.0
|
|
320
|
+
* @category models
|
|
321
|
+
*/
|
|
322
|
+
interface WriteFileOptions extends SerializeOptions {
|
|
323
|
+
/** The serializer to use; otherwise one is chosen by `mediaType` or the file extension. */
|
|
324
|
+
readonly serializer?: Serializer<any> | undefined;
|
|
325
|
+
/** A media type to find the serializer by in the `Formats` service. */
|
|
326
|
+
readonly mediaType?: string | undefined;
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Reads an RDF file through Effect's platform-agnostic `FileSystem` (the
|
|
330
|
+
* consumer provides `NodeFileSystem`, Bun or another layer). The parser is
|
|
331
|
+
* `options.parser`, or is looked up in the `Formats` service by
|
|
332
|
+
* `options.mediaType` or the file extension. Relative IRIs resolve against
|
|
333
|
+
* the file's `file:` URL unless `options.baseIri` is given.
|
|
334
|
+
*
|
|
335
|
+
* @since 0.1.0
|
|
336
|
+
* @category files
|
|
337
|
+
*/
|
|
338
|
+
declare const readFile: (path: string, options?: ReadFileOptions) => Effect.Effect<ParseResult, RdfParseError | PlatformError.PlatformError, FileSystem.FileSystem | Path.Path>;
|
|
339
|
+
/**
|
|
340
|
+
* Writes quads to an RDF file through Effect's `FileSystem`, as UTF-8. The
|
|
341
|
+
* serializer is `options.serializer`, or is looked up in the `Formats`
|
|
342
|
+
* service by `options.mediaType` or the file extension.
|
|
343
|
+
*
|
|
344
|
+
* @since 0.1.0
|
|
345
|
+
* @category files
|
|
346
|
+
*/
|
|
347
|
+
declare const writeFile: (path: string, quads: Iterable<Quad>, options?: WriteFileOptions) => Effect.Effect<void, RdfSerializeError | PlatformError.PlatformError, FileSystem.FileSystem | Path.Path>;
|
|
348
|
+
/**
|
|
349
|
+
* What a syntax's spans are named after: `<module>.<operation>` (e.g.
|
|
350
|
+
* `Turtle.parse`), with the format's name and media type as attributes.
|
|
351
|
+
*
|
|
352
|
+
* @since 0.1.0
|
|
353
|
+
* @category tracing
|
|
354
|
+
*/
|
|
355
|
+
interface SpanTarget {
|
|
356
|
+
readonly module: string;
|
|
357
|
+
readonly format: Format;
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* Wraps a whole-document parse in a span named `<module>.<operation>`
|
|
361
|
+
* (`operation` defaults to `parse`), with the format, media type and input
|
|
362
|
+
* length in characters as attributes and the number of statements parsed
|
|
363
|
+
* (`rdf.quads`, which counts a statement the document repeats each time) on
|
|
364
|
+
* completion. The input text itself is never recorded.
|
|
365
|
+
* With no target the effect is returned unchanged.
|
|
366
|
+
*
|
|
367
|
+
* @since 0.1.0
|
|
368
|
+
* @category tracing
|
|
369
|
+
*/
|
|
370
|
+
declare const withParseSpan: (target: SpanTarget | undefined, input: string, operation?: string) => <A extends ParseResult, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
|
|
371
|
+
/**
|
|
372
|
+
* Wraps a whole-document serialisation in a span named
|
|
373
|
+
* `<module>.serialize`, with the format and media type as attributes and the
|
|
374
|
+
* output length in characters (`rdf.output.length`) on completion. With no
|
|
375
|
+
* target the effect is returned unchanged.
|
|
376
|
+
*
|
|
377
|
+
* @since 0.1.0
|
|
378
|
+
* @category tracing
|
|
379
|
+
*/
|
|
380
|
+
declare const withSerializeSpan: (target: SpanTarget | undefined) => <E, R>(self: Effect.Effect<string, E, R>) => Effect.Effect<string, E, R>;
|
|
381
|
+
/**
|
|
382
|
+
* Wraps a streaming parse or serialisation in a span named
|
|
383
|
+
* `<module>.<operation>` (e.g. `Turtle.parseStream`) that lasts while the
|
|
384
|
+
* stream runs, with the format and media type as attributes. Nothing is
|
|
385
|
+
* recorded per element. With no target the stream is returned unchanged.
|
|
386
|
+
*
|
|
387
|
+
* @since 0.1.0
|
|
388
|
+
* @category tracing
|
|
389
|
+
*/
|
|
390
|
+
declare const withStreamSpan: (target: SpanTarget | undefined, operation: "parseStream" | "serializeStream") => <A, E, R>(self: Stream.Stream<A, E, R>) => Stream.Stream<A, E, R>;
|
|
391
|
+
export { readFile as A, makeSerializer as C, parseBytesDocument as D, parseBytes as E, withParseSpan as F, withSerializeSpan as I, withStreamSpan as L, serializerFor as M, serializerForExtension as N, parserFor as O, toSchema as P, writeFile as R, makeParser as S, parseAccept as T, formatError as _, Formats as a, makeCodec as b, Parser as c, ReadFileOptions as d, Serialization_d_exports as f, WriteFileOptions as g, SpanTarget as h, Format as i, serializeBytes as j, parserForExtension as k, RdfParseError as l, Serializer as m, BytesOptions as n, ParseOptions as o, SerializeOptions as p, Codec as r, ParseResult as s, AcceptEntry as t, RdfSerializeError as u, freshBlankNodePrefix as v, negotiate as w, makeFormat as x, layer as y };
|
|
392
|
+
//# sourceMappingURL=Serialization-Df8iVauT.d.mts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { A as readFile, C as makeSerializer, D as parseBytesDocument, E as parseBytes, F as withParseSpan, I as withSerializeSpan, L as withStreamSpan, M as serializerFor, N as serializerForExtension, O as parserFor, P as toSchema, R as writeFile, S as makeParser, T as parseAccept, _ as formatError, a as Formats, b as makeCodec, c as Parser, d as ReadFileOptions, g as WriteFileOptions, h as SpanTarget, i as Format, j as serializeBytes, k as parserForExtension, l as RdfParseError, m as Serializer, n as BytesOptions, o as ParseOptions, p as SerializeOptions, r as Codec, s as ParseResult, t as AcceptEntry, u as RdfSerializeError, v as freshBlankNodePrefix, w as negotiate, x as makeFormat, y as layer } from "./Serialization-Df8iVauT.mjs";
|
|
2
|
+
export { AcceptEntry, BytesOptions, Codec, Format, Formats, ParseOptions, ParseResult, Parser, RdfParseError, RdfSerializeError, ReadFileOptions, SerializeOptions, Serializer, SpanTarget, WriteFileOptions, formatError, freshBlankNodePrefix, layer, makeCodec, makeFormat, makeParser, makeSerializer, negotiate, parseAccept, parseBytes, parseBytesDocument, parserFor, parserForExtension, readFile, serializeBytes, serializerFor, serializerForExtension, toSchema, withParseSpan, withSerializeSpan, withStreamSpan, writeFile };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as Formats, n as RdfParseError, r as RdfSerializeError, a as formatError, o as freshBlankNodePrefix, s as layer, c as makeCodec, l as makeFormat, u as makeParser, d as makeSerializer, f as negotiate, p as parseAccept, m as parseBytes, h as parseBytesDocument, g as parserFor, _ as parserForExtension, v as readFile, y as serializeBytes, b as serializerFor, x as serializerForExtension, S as toSchema, C as withParseSpan, w as withSerializeSpan, T as withStreamSpan, E as writeFile } from "./Serialization-DP9H5bYQ.mjs";
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D8jQpDG7.mjs";
|
|
2
|
+
import { b as serializerFor, f as negotiate, s as layer$1 } from "./Serialization-DP9H5bYQ.mjs";
|
|
3
|
+
import { n as codec } from "./JsonLd-DOwS2FHg.mjs";
|
|
4
|
+
import { n as codec$1 } from "./N3-BzyV-KIH.mjs";
|
|
5
|
+
import { n as codec$2 } from "./NQuads-C1VBOJ3-.mjs";
|
|
6
|
+
import { n as codec$3 } from "./NTriples-D-kLSEAf.mjs";
|
|
7
|
+
import { p as codec$4 } from "./RdfJson-BNocgW4f.mjs";
|
|
8
|
+
import { n as codec$5 } from "./RdfXml-DJ9G4gOq.mjs";
|
|
9
|
+
import { n as codec$6 } from "./Turtle-CZVUOtwl.mjs";
|
|
10
|
+
import { n as codec$7 } from "./TriG-BkqtqZ6Y.mjs";
|
|
11
|
+
import * as Option from "effect/Option";
|
|
12
|
+
// src/sparql/ServerFormats.ts
|
|
13
|
+
var ServerFormats_exports = /* @__PURE__ */ __exportAll({
|
|
14
|
+
codecs: () => codecs,
|
|
15
|
+
layer: () => layer,
|
|
16
|
+
negotiateSerializer: () => negotiateSerializer,
|
|
17
|
+
serializerMediaTypes: () => serializerMediaTypes
|
|
18
|
+
});
|
|
19
|
+
/**
|
|
20
|
+
* The default codecs, in order of preference for content negotiation.
|
|
21
|
+
*
|
|
22
|
+
* @since 0.1.0
|
|
23
|
+
* @category formats
|
|
24
|
+
*/
|
|
25
|
+
const codecs = [
|
|
26
|
+
codec$6,
|
|
27
|
+
codec$3,
|
|
28
|
+
codec$5,
|
|
29
|
+
codec,
|
|
30
|
+
codec$1,
|
|
31
|
+
codec$7,
|
|
32
|
+
codec$2,
|
|
33
|
+
codec$4
|
|
34
|
+
];
|
|
35
|
+
/**
|
|
36
|
+
* A `Formats` layer with the default codecs.
|
|
37
|
+
*
|
|
38
|
+
* @since 0.1.0
|
|
39
|
+
* @category layers
|
|
40
|
+
*/
|
|
41
|
+
const layer = layer$1(...codecs);
|
|
42
|
+
/**
|
|
43
|
+
* The media types of a set of serializers, in order.
|
|
44
|
+
*
|
|
45
|
+
* @since 0.1.0
|
|
46
|
+
* @category negotiation
|
|
47
|
+
*/
|
|
48
|
+
const serializerMediaTypes = (formats) => formats.serializers.flatMap((s) => s.format.mediaTypes);
|
|
49
|
+
/**
|
|
50
|
+
* Chooses a serializer for an `Accept` header (the first registered
|
|
51
|
+
* serializer when the header is absent or `*` / `*`).
|
|
52
|
+
*
|
|
53
|
+
* @since 0.1.0
|
|
54
|
+
* @category negotiation
|
|
55
|
+
*/
|
|
56
|
+
const negotiateSerializer = (formats, accept) => {
|
|
57
|
+
const mediaType = negotiate(accept, serializerMediaTypes(formats));
|
|
58
|
+
if (Option.isNone(mediaType)) return void 0;
|
|
59
|
+
const serializer = serializerFor(formats, mediaType.value);
|
|
60
|
+
return Option.getOrUndefined(serializer);
|
|
61
|
+
};
|
|
62
|
+
export { serializerMediaTypes as a, negotiateSerializer as i, codecs as n, layer as r, ServerFormats_exports as t };
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=ServerFormats-CrRnjjf6.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServerFormats-CrRnjjf6.mjs","names":["Turtle.codec","NTriples.codec","RdfXml.codec","JsonLd.codec","N3.codec","TriG.codec","NQuads.codec","RdfJson.codec","Serialization.layer","Serialization.negotiate","Serialization.serializerFor"],"sources":["../src/sparql/ServerFormats.ts"],"sourcesContent":["/**\n * The RDF syntaxes the server reads and writes by default: Turtle,\n * N-Triples, RDF/XML, JSON-LD, N3, TriG, N-Quads and RDF/JSON, registered in\n * the core `Serialization.Formats` service.\n *\n * Graph Store request bodies are parsed with the parser registered for their\n * `Content-Type`, and `CONSTRUCT` / `DESCRIBE` results and Graph Store\n * responses are serialised with the serializer selected by content\n * negotiation, in the order of `codecs` (the first one is the default).\n *\n * @since 0.1.0\n */\nimport type * as Layer from 'effect/Layer';\nimport * as Option from 'effect/Option';\nimport * as Serialization from '../Serialization.ts';\nimport * as JsonLd from '../jsonld/JsonLd.ts';\nimport * as N3 from '../n3/N3.ts';\nimport * as NQuads from '../ntriples/NQuads.ts';\nimport * as NTriples from '../ntriples/NTriples.ts';\nimport * as RdfJson from '../rdfjson/RdfJson.ts';\nimport * as RdfXml from '../rdfxml/RdfXml.ts';\nimport * as TriG from '../turtle/TriG.ts';\nimport * as Turtle from '../turtle/Turtle.ts';\n\n/**\n * The default codecs, in order of preference for content negotiation.\n *\n * @since 0.1.0\n * @category formats\n */\nexport const codecs: ReadonlyArray<Serialization.Codec<any, any>> = [\n Turtle.codec,\n NTriples.codec,\n RdfXml.codec,\n JsonLd.codec,\n N3.codec,\n TriG.codec,\n NQuads.codec,\n RdfJson.codec,\n];\n\n/**\n * A `Formats` layer with the default codecs.\n *\n * @since 0.1.0\n * @category layers\n */\nexport const layer: Layer.Layer<Serialization.Formats> = Serialization.layer(...codecs);\n\n/**\n * The media types of a set of serializers, in order.\n *\n * @since 0.1.0\n * @category negotiation\n */\nexport const serializerMediaTypes = (\n formats: Serialization.Formats['Service'],\n): ReadonlyArray<string> => formats.serializers.flatMap((s) => s.format.mediaTypes);\n\n/**\n * Chooses a serializer for an `Accept` header (the first registered\n * serializer when the header is absent or `*` / `*`).\n *\n * @since 0.1.0\n * @category negotiation\n */\nexport const negotiateSerializer = (\n formats: Serialization.Formats['Service'],\n accept: string | undefined,\n): Serialization.Serializer<any> | undefined => {\n const mediaType = Serialization.negotiate(accept, serializerMediaTypes(formats));\n if (Option.isNone(mediaType)) return undefined;\n const serializer = Serialization.serializerFor(formats, mediaType.value);\n return Option.getOrUndefined(serializer);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA8BA,MAAa,SAAuD;CAClEA;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;AACF;;;;;;;AAQA,MAAa,QAA4CC,QAAoB,GAAG,MAAM;;;;;;;AAQtF,MAAa,wBACX,YAC0B,QAAQ,YAAY,SAAS,MAAM,EAAE,OAAO,UAAU;;;;;;;;AASlF,MAAa,uBACX,SACA,WAC8C;CAC9C,MAAM,YAAYC,UAAwB,QAAQ,qBAAqB,OAAO,CAAC;CAC/E,IAAI,OAAO,OAAO,SAAS,GAAG,OAAO,KAAA;CACrC,MAAM,aAAaC,cAA4B,SAAS,UAAU,KAAK;CACvE,OAAO,OAAO,eAAe,UAAU;AACzC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { a as Formats, m as Serializer, r as Codec } from "./Serialization-Df8iVauT.mjs";
|
|
2
|
+
import * as Layer from "effect/Layer";
|
|
3
|
+
declare namespace ServerFormats_d_exports {
|
|
4
|
+
export { codecs, layer, negotiateSerializer, serializerMediaTypes };
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The default codecs, in order of preference for content negotiation.
|
|
8
|
+
*
|
|
9
|
+
* @since 0.1.0
|
|
10
|
+
* @category formats
|
|
11
|
+
*/
|
|
12
|
+
declare const codecs: ReadonlyArray<Codec<any, any>>;
|
|
13
|
+
/**
|
|
14
|
+
* A `Formats` layer with the default codecs.
|
|
15
|
+
*
|
|
16
|
+
* @since 0.1.0
|
|
17
|
+
* @category layers
|
|
18
|
+
*/
|
|
19
|
+
declare const layer: Layer.Layer<Formats>;
|
|
20
|
+
/**
|
|
21
|
+
* The media types of a set of serializers, in order.
|
|
22
|
+
*
|
|
23
|
+
* @since 0.1.0
|
|
24
|
+
* @category negotiation
|
|
25
|
+
*/
|
|
26
|
+
declare const serializerMediaTypes: (formats: Formats["Service"]) => ReadonlyArray<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Chooses a serializer for an `Accept` header (the first registered
|
|
29
|
+
* serializer when the header is absent or `*` / `*`).
|
|
30
|
+
*
|
|
31
|
+
* @since 0.1.0
|
|
32
|
+
* @category negotiation
|
|
33
|
+
*/
|
|
34
|
+
declare const negotiateSerializer: (formats: Formats["Service"], accept: string | undefined) => Serializer<any> | undefined;
|
|
35
|
+
export { serializerMediaTypes as a, negotiateSerializer as i, codecs as n, layer as r, ServerFormats_d_exports as t };
|
|
36
|
+
//# sourceMappingURL=ServerFormats-DjC9NsO_.d.mts.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { _ as Quad, d as NamedNode, t as BlankNode } from "./Term-B_4ezyXq.mjs";
|
|
2
|
+
import { a as Formats } from "./Serialization-Df8iVauT.mjs";
|
|
3
|
+
declare namespace ServiceDescription_d_exports {
|
|
4
|
+
export { DescriptionOptions, FormatIris, SD, describe, formatIris };
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The service description namespace.
|
|
8
|
+
*
|
|
9
|
+
* @since 0.1.0
|
|
10
|
+
* @category vocabulary
|
|
11
|
+
*/
|
|
12
|
+
declare const SD = "http://www.w3.org/ns/sparql-service-description#";
|
|
13
|
+
/**
|
|
14
|
+
* A table from media type to its `http://www.w3.org/ns/formats/` IRI.
|
|
15
|
+
*
|
|
16
|
+
* @since 0.1.0
|
|
17
|
+
* @category vocabulary
|
|
18
|
+
*/
|
|
19
|
+
interface FormatIris {
|
|
20
|
+
readonly [mediaType: string]: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The `http://www.w3.org/ns/formats/` IRIs of well-known media types.
|
|
24
|
+
*
|
|
25
|
+
* @since 0.1.0
|
|
26
|
+
* @category vocabulary
|
|
27
|
+
*/
|
|
28
|
+
declare const formatIris: FormatIris;
|
|
29
|
+
/**
|
|
30
|
+
* What the description advertises.
|
|
31
|
+
*
|
|
32
|
+
* @since 0.1.0
|
|
33
|
+
* @category models
|
|
34
|
+
*/
|
|
35
|
+
interface DescriptionOptions {
|
|
36
|
+
/** The query endpoint URL. */
|
|
37
|
+
readonly endpoint: string;
|
|
38
|
+
/** The update endpoint URL, when updates are enabled. */
|
|
39
|
+
readonly updateEndpoint: string | undefined;
|
|
40
|
+
readonly formats: Formats['Service'];
|
|
41
|
+
readonly unionDefaultGraph: boolean;
|
|
42
|
+
readonly federation: boolean;
|
|
43
|
+
/** Named graphs of the default dataset to list. */
|
|
44
|
+
readonly namedGraphs: ReadonlyArray<NamedNode | BlankNode>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Builds the service description as triples.
|
|
48
|
+
*
|
|
49
|
+
* @since 0.1.0
|
|
50
|
+
* @category constructors
|
|
51
|
+
*/
|
|
52
|
+
declare const describe: (options: DescriptionOptions) => ReadonlyArray<Quad>;
|
|
53
|
+
export { describe as a, ServiceDescription_d_exports as i, FormatIris as n, formatIris as o, SD as r, DescriptionOptions as t };
|
|
54
|
+
//# sourceMappingURL=ServiceDescription-BERsvg-k.d.mts.map
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D8jQpDG7.mjs";
|
|
2
|
+
import { Q as quad, T as blankNode, Z as namedNode } from "./Term-CFLG1qu4.mjs";
|
|
3
|
+
import { d as codecs } from "./Results-peJjGA2V.mjs";
|
|
4
|
+
import * as Arr from "effect/Array";
|
|
5
|
+
// src/sparql/ServiceDescription.ts
|
|
6
|
+
/**
|
|
7
|
+
* SPARQL 1.1 Service Description: the RDF description of the endpoint
|
|
8
|
+
* returned for a `GET` request without a query.
|
|
9
|
+
*
|
|
10
|
+
* @since 0.1.0
|
|
11
|
+
*/
|
|
12
|
+
var ServiceDescription_exports = /* @__PURE__ */ __exportAll({
|
|
13
|
+
SD: () => SD,
|
|
14
|
+
describe: () => describe,
|
|
15
|
+
formatIris: () => formatIris
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* The service description namespace.
|
|
19
|
+
*
|
|
20
|
+
* @since 0.1.0
|
|
21
|
+
* @category vocabulary
|
|
22
|
+
*/
|
|
23
|
+
const SD = "http://www.w3.org/ns/sparql-service-description#";
|
|
24
|
+
const RDF_TYPE = namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");
|
|
25
|
+
const FORMATS = "http://www.w3.org/ns/formats/";
|
|
26
|
+
const ENTAILMENT = "http://www.w3.org/ns/entailment/";
|
|
27
|
+
/**
|
|
28
|
+
* The `http://www.w3.org/ns/formats/` IRIs of well-known media types.
|
|
29
|
+
*
|
|
30
|
+
* @since 0.1.0
|
|
31
|
+
* @category vocabulary
|
|
32
|
+
*/
|
|
33
|
+
const formatIris = {
|
|
34
|
+
"text/turtle": `${FORMATS}Turtle`,
|
|
35
|
+
"application/n-triples": `${FORMATS}N-Triples`,
|
|
36
|
+
"application/rdf+xml": `${FORMATS}RDF_XML`,
|
|
37
|
+
"application/ld+json": `${FORMATS}JSON-LD`,
|
|
38
|
+
"text/n3": `${FORMATS}N3`,
|
|
39
|
+
"application/trig": `${FORMATS}TriG`,
|
|
40
|
+
"application/n-quads": `${FORMATS}N-Quads`,
|
|
41
|
+
"application/rdf+json": `${FORMATS}RDF_JSON`,
|
|
42
|
+
"application/sparql-results+json": `${FORMATS}SPARQL_Results_JSON`,
|
|
43
|
+
"application/sparql-results+xml": `${FORMATS}SPARQL_Results_XML`,
|
|
44
|
+
"text/csv": `${FORMATS}SPARQL_Results_CSV`,
|
|
45
|
+
"text/tab-separated-values": `${FORMATS}SPARQL_Results_TSV`
|
|
46
|
+
};
|
|
47
|
+
const sd = (local) => namedNode(`${SD}${local}`);
|
|
48
|
+
/**
|
|
49
|
+
* Builds the service description as triples.
|
|
50
|
+
*
|
|
51
|
+
* @since 0.1.0
|
|
52
|
+
* @category constructors
|
|
53
|
+
*/
|
|
54
|
+
const describe = (options) => {
|
|
55
|
+
const endpoints = [options.endpoint];
|
|
56
|
+
const quads = [];
|
|
57
|
+
const add = (s, p, o) => quads.push(quad(s, p, o));
|
|
58
|
+
if (options.updateEndpoint !== void 0 && options.updateEndpoint !== options.endpoint) endpoints.push(options.updateEndpoint);
|
|
59
|
+
endpoints.forEach((endpoint) => {
|
|
60
|
+
const service = blankNode();
|
|
61
|
+
add(service, RDF_TYPE, sd("Service"));
|
|
62
|
+
add(service, sd("endpoint"), namedNode(endpoint));
|
|
63
|
+
if (endpoint === options.endpoint) {
|
|
64
|
+
add(service, sd("supportedLanguage"), sd("SPARQL10Query"));
|
|
65
|
+
add(service, sd("supportedLanguage"), sd("SPARQL11Query"));
|
|
66
|
+
}
|
|
67
|
+
if (options.updateEndpoint === endpoint) add(service, sd("supportedLanguage"), sd("SPARQL11Update"));
|
|
68
|
+
Arr.dedupe([...codecs.map((codec) => codec.format.mediaType), ...options.formats.serializers.map((s) => s.format.mediaType)]).forEach((mt) => {
|
|
69
|
+
const iri = formatIris[mt];
|
|
70
|
+
if (iri !== void 0) add(service, sd("resultFormat"), namedNode(iri));
|
|
71
|
+
});
|
|
72
|
+
options.formats.parsers.forEach((p) => {
|
|
73
|
+
const iri = formatIris[p.format.mediaType];
|
|
74
|
+
if (iri !== void 0) add(service, sd("inputFormat"), namedNode(iri));
|
|
75
|
+
});
|
|
76
|
+
if (options.unionDefaultGraph) add(service, sd("feature"), sd("UnionDefaultGraph"));
|
|
77
|
+
if (options.federation) add(service, sd("feature"), sd("BasicFederatedQuery"));
|
|
78
|
+
add(service, sd("feature"), sd("EmptyGraphs"));
|
|
79
|
+
add(service, sd("defaultEntailmentRegime"), namedNode(`${ENTAILMENT}Simple`));
|
|
80
|
+
const dataset = blankNode();
|
|
81
|
+
add(service, sd("defaultDataset"), dataset);
|
|
82
|
+
add(dataset, RDF_TYPE, sd("Dataset"));
|
|
83
|
+
const defaultGraph = blankNode();
|
|
84
|
+
add(dataset, sd("defaultGraph"), defaultGraph);
|
|
85
|
+
add(defaultGraph, RDF_TYPE, sd("Graph"));
|
|
86
|
+
options.namedGraphs.forEach((g) => {
|
|
87
|
+
const named = blankNode();
|
|
88
|
+
add(dataset, sd("namedGraph"), named);
|
|
89
|
+
add(named, RDF_TYPE, sd("NamedGraph"));
|
|
90
|
+
add(named, sd("name"), g);
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
return quads;
|
|
94
|
+
};
|
|
95
|
+
export { formatIris as i, ServiceDescription_exports as n, describe as r, SD as t };
|
|
96
|
+
|
|
97
|
+
//# sourceMappingURL=ServiceDescription-Dq5hxeGy.mjs.map
|