1.1.4 • Published 6 days ago

@teamteanpm2024/voluptatibus-reprehenderit-possimus v1.1.4

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

@teamteanpm2024/voluptatibus-reprehenderit-possimus

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/voluptatibus-reprehenderit-possimus'

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)
})
superstructtestercloudsearchmochaconsoleimmertddes2016autoscalingjQueryes8look-upswf[[Prototype]]callbackregularfunctionwindowsspinnerserror-handlingfromCSSStyleDeclarationl10nhassameValueZerokeysymlinkcopyemojitestingpositiveparseres2015unicodereact poseguidstatusarraybufferfastcopydragfast-deep-copycss nestingsetasciiObject.entriesObject.fromEntrieseventEmitterform-validationsignalssigtermbabel-coreconcurrencyirqsnsshamrm -rfES2020parentstyped arrayfastifydynamodbTypedArrayfast-deep-clonetypeerrorstyled-componentsvaluenativeSymbolecmascriptqsjsoncolourPushObject.getPrototypeOflockfilejavascriptperformanceString.prototype.matchAllutilityenderStreamhigher-orderreusewaapiwatchECMAScript 2015ES2019findLastbuffersWeakSetprunestreams2redux-toolkitgesturesmixinsstatelesscontainscharacterdeepfindextracloudtrailimportsortvaluespolyfillcollection.es6Object.issharedgdprscheme-validationextensionsomeagenteslintconfigless cssdebugassignreactBigInt64ArraywatchFileauthenticationcharactersObject.valuesArray.prototype.flatMapasyncspeceslintpluginencryptionRegExp#flagsstablexssreact-testing-libraryisConcatSpreadablecoerciblebrowserlistECMAScript 2016validatorinputprototypeidleimmutabledeep-cloneflattensharedarraybuffermovepoint-freeloadbalancingchromiummimeio-tsnumberbatchpuresetImmediatetypeofgetobjargslinuxhookformless.jsstylesUint32Arrayregular expressionsTypeScriptrangeerrortypedarrayses6libphonenumberJSON-SchemaoptionInt8Arraysymbolsregular expressionbannertoSortedtoStringTagwatchingtypedarrayquoteFloat32Arrayaccessoruuidyamlhas-ownenvironmentspringregexprmdirpropertiesgradients css3WebSocketbusytrimStartjsdomfigletiterationdescriptorsrobustbootstrap lesscircularmacosArrayformimportexportES2016validateconsumecodesjson-schema-validationloadingboundinferenceviewarraysletpackage.jsonnamesiefetchSymbol.toStringTagparseArray.prototype.includesajaxsanitizationsortedvalidcloudwatchanimationstructuredClonechannelMaprm.envramdalastfullwidthstoragegatewayFunction.prototype.nameassertiondatastructuresideSetchaicolorstc39preserve-symlinksbindoncedependenciesfseventsMicrosoftwordbreakemrdom-testing-libraryvisualrgbECMAScript 6awaitsyntaxerrormakesymlinksjsonschemaawstapepassworddropUint8ArraycompilerfscommanderdayjsflatMapinpackagesES8filterinvariantaccessibilitylesschineseemitsimpledbgenericsminimalbalancedArrayBuffer#slicecallbounddeepcopydependency managercomparelimitdeep-copyopenframermime-dbprotobufES2015gradients cssInt32Arrayjsdiffgetoptsafelinkiswriterequireinterruptscacheprivatesigintglacierexit-codefile systemworkspace:*workerArrayBuffer.prototype.slicebootstrap csshttpsmapec2censorclass-validatordataViewrequestUint16Array$.extendforEachconcatnopeduplexString.prototype.trimObject.keysloggingUint8ClampedArrayutilgetOwnPropertyDescriptorpicomatchiamtsawesomesaucejson-schema-validatorcolumncryptArrayBuffercss variableprogressargumentreducecore-jswaitArray.prototype.containsapiconsts3StyleSheetRxtostringtagdiffES2021electroncloudformationfileEStakeES2023TypeBoxsequencestylejasminesignalstyleguidemodulestringifierflatspeedestreekarmaES2017omitwgetshellexecmkdirsprefixes5modulestypanionhasOwnpackageURLairbnbstringifytypescriptObjectebsHyBislicepopmotionthreetrimRightreal-timeES7starterwatchervalidationpathtelephoneRFC-6455terminalbufferhashes2018setterjwttaskcomputed-typeses-shim APIRegExp.prototype.flagsECMAScript 2019ownconnectmulti-packagematchAllsqswafdataglobhardlinkstrimEndnegativepipeECMAScript 2023ECMAScript 2020__proto__ttybundlerreduxflagsbrowserprotothrottleprocessdescriptionspinnermruequalincludescoreeventswrapsetPrototypeOfexittermquerystringshebanggetPrototypeOfcsswalkingcollectiontoolkitparsingsanitizerapiddomgetterhooksdescriptorcss lesstacitnodejsbyteLengthamazonzerosyntaxextendjapaneselimitedlint6to5ES2018fullclonecallbindajvweaksettoArrayslothttpiteraterfc4122autoprefixerrdsavacode pointsquery_.extendstylingentriesjsnegative zerowalkcurriedstylesheetfpECMAScript 2021reducerinternalshrinkwrapuser-streamspropflaggetintrinsicArray.prototype.flatastenvcommandwidthfind-upmkdirutilitiesworkflowreadablestreamreact animationbytetypesafefull-widthcorsreadablegroupByeventDispatcherfindupurlphoneupratelimithasOwnPropertyObservablecolorvestwarningfpsdotenvnested cssECMAScript 2022eslint-pluginequalityuninstallqueuereact-hook-formcss-in-jstextreadvariables in cssutilspatchReactiveExtensionscallWebSocketsinstallless mixinsbcryptYAMLCSSxtermdataviewtypesFloat64Arrayprivate datajsxbyteOffsetmobileobjectjestes2017formsdebuggerRxJSlengthnpmnodedirectoryplugindeterministicrandomtrimstreamsrm -frcurlcommand-linemake direscaperegexbreak-0variablesInt16Arraypackage managercjkarktypepromisesless compiler3ddefinelazyjoi
1.1.4

6 days ago

1.1.3

7 days ago

1.1.2

8 days ago

1.1.1

9 days ago

1.1.0

10 days ago

1.0.0

10 days ago