1.0.6 • Published 6 days ago

@teamteanpm2024/assumenda-nulla-consequuntur v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
6 days ago

@teamteanpm2024/assumenda-nulla-consequuntur

build status npm version

SPARQL client for easier handling of SPARQL Queries and Graph Store requests. The SPARQL Protocol is used for SPARQL Queries and SPARQL Updates. The SPARQL Graph Store Protocol is used to manage Named Graphs.

It provides client implementations in different flavors. The default client comes with an interface for streams, the simple client is closer to fetch, and the parsing client wraps the results directly into RDF/JS DatasetCore objects or arrays.

Usage

The example below shows how to use the client to run a SELECT query against the Wikidata endpoint. Check the documentation for more details.

import SparqlClient from '@teamteanpm2024/assumenda-nulla-consequuntur'

const endpointUrl = 'https://query.wikidata.org/sparql'
const query = `
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>

SELECT ?value WHERE {
  wd:Q243 p:P2048 ?height.

  ?height pq:P518 wd:Q24192182;
    ps:P2048 ?value .
}`

const client = new SparqlClient({ endpointUrl })
const stream = client.query.select(query)

stream.on('data', row => {
  for (const [key, value] of Object.entries(row)) {
    console.log(`${key}: ${value.value} (${value.termType})`)
  }
})

stream.on('error', err => {
  console.error(err)
})
protoconfigurableeslintconfig256namesrdsrmdirconcatstyled-componentsqueueObject.keysxtermmonoreporeal-timeinstallermovelookArray.prototype.containssearchgdprexit-codeES5curriedutilityguidmobileunicodereact-hooksclassesmapreduceletserializationjson-schematrimLeftutildirectorypackagestringapifiglethardlinksformattingelasticachetrimStartbyteLengthsuperstructlazycorsfseventscss-in-jschromeTypeScriptdebugkarmaes-shim APIextraencryptionpackage managerReactiveXReflect.getPrototypeOfvariables in cssgesturesnested cssconsoleobjparser@@toStringTagrangeerrorindicatorrequireuninstallisimportstructuredClonenodejskoreanmkdirpwalkUint32Arrayes6webendpointhasOwnPropertyassertmodulesforEachescapecallboundInt8ArrayweaksetECMAScript 2022findLastshamwrapshells3storagegatewayweakmapbyteserializeharmonypropertyhttpselectroncode pointssliceBigUint64Arrayformatspeedarraymakebundlingrm -rfmatchesfindLastIndexajvbrowserslisti18nanimationeventDispatcherfiltersidefind-upregexpyupprotobufnameprettyUint8Arraybusyhelperspushtouchlesscssemrhascontainsprefixoperating-systemtestsesvalidationWeakSetArrayBuffer.prototype.slicecharactersscheme-validationinterruptsbabelES2017fantasy-landconfigclass-validatorURLawsrgbspinnersfullgetterconcatMaproute53optimizerpoint-freestyleses-shimsimmutableeventEmitterpackagesa11ysetjsxjestreact-testing-libraryECMAScript 6validatefast-deep-copymime-dbenderclassnamessnscss lesslogcssdropswfhasOwncallbackless csskeycheckastwhatwgES2022rapidSetawaitpyyamlproxystarterString.prototype.trimregular expressionajaxmetadataES6limitedcompilerruntimeES8persistentregulartranspileObject.getPrototypeOfinternal slotreducehas-own-0browserlistjsoncryptovalidatorwalking$.extendexececmascriptECMAScript 2020getoptterminalpromisepostcssfile systemprotocol-buffersviewstylesheetCSSStyleDeclarationtddmergeArrayES2021Object.isboundWebSocketsfunctionstypesafesanitizeassignconstutilitiesmoduleflatMapES2015accessorexpressBigInt64Arrayless compilerenvironmentlockfileObjectes2016watcherprototypeUnderscorewarningassertsgetPrototypeOfentriesbluebirdlibphonenumberpropertiesisConcatSpreadablecolourdeep-copytapenegativeprivateprunebatchsimpledbPushSymbolarktypewatchvariablesRegExp.prototype.flagsArray.prototype.findLastIndexhookformCSSfastcopycolorform-validationbrowserArray.prototype.flatmapsequencecharacterECMAScript 2016trimRightjapanesemixinsdynamodblistenersupnegative zeroeventsfoldertypescriptbeanstalkstatelessassertionremoveReactiveExtensionsES2020trimcjkframeworkarraybufferECMAScript 2023waapiinspectreusebalancedcloudtraillinkvaluereadablestreamqueueMicrotaskdefineArray.prototype.findLastsameValueZeropurevalidtypedstreamsless mixinsvaluesdragreact poserm -frobjectFloat32ArraytoStringTagsettingstrimEndURLSearchParamsreduxECMAScript 2018sharedarraybufferquerystringvarredux-toolkittoobjectstringifierfixed-widthdefinePropertykinesisstylewritableprivate dataposeiambundleremojidotenvMapramdaarturlduplexdiffwidthsignalfromdatareact animationiefull-widthArray.prototype.flatMapenvcommandercryptdatastructureinternallook-upObject.entriesmrurecursivecommand-lineECMAScript 2017openexpressionfilebabel-corecommandomitjswatchingrandomargsformsvesttextuuidECMAScript 2019postcss-pluginvisualconcurrencyparentsirqsetPrototypeOfcallbindsymlinkxhrperformanceclonewordbreak
1.0.6

6 days ago

1.0.5

7 days ago

1.0.4

8 days ago

1.0.3

9 days ago

1.0.2

10 days ago

1.0.1

11 days ago

1.0.0

11 days ago