1.0.0 • Published 1 year ago

@hishpr/sed-aliquam v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@hishpr/sed-aliquam

build status npm version

JSON-LD parser that implements the RDF/JS Sink interface using jsonld-streaming-parser.

Usage

Use the following command to add the package as a dependency to your project:

npm install @rdfjs/data-model --save

The package exports the parser as a class, so an instance must be created before it can be used. The .import method, as defined in the RDF/JS specification, must be called to do the actual parsing. It expects a JSON string stream or a stream which emits a single object. The method will return a stream which emits the parsed quads.

The constructor accepts an options object with the following optional keys:

  • baseIRI: Allows passing the base IRI manually to the jsonld-streaming-parser library.
  • context: Allows passing a JSON-LD context manually to the jsonld-streaming-parser library.
  • factory: Use an alternative RDF/JS data factory. By default the reference implementation us used.

It's also possible to pass options as second argument to the .import method. The options from the constructor and the .import method will be merged together.

Example

This example shows how to create a parser instance and how to feed it with a stream from a string. The parsed quads are written to the console.

import ParserJsonld from '@hishpr/sed-aliquam'
import { Readable } from 'stream'

const parserJsonld = new ParserJsonld()

const input = new Readable({
  read: () => {
    input.push(`{
      "@context": "http://schema.org/",
      "@type": "Person",
      "name": "Jane Doe",
      "jobTitle": "Professor",
      "telephone": "(425) 123-4567",
      "url": "http://www.janedoe.com"
    }`)
    input.push(null)
  }
})

const output = parserJsonld.import(input)

output.on('data', quad => {
  console.log(`${quad.subject.value} - ${quad.predicate.value} - ${quad.object.value}`)
})
deleteincludesinstallerJSON-SchemaReactiveXreversedredirectenderfast-clonesyntaxerrorRegExp.prototype.flagsmruclianimationexecutelookwgetmkdirzoddynamodbpropdebug256ES2018look-upObservableloggerfastcloneqsUint8ClampedArrayiteratelogchromeguidarrayselasticacheshebangtypeoutputjstostringtagomitrestfulfilteres2017formatenv0reduxgesturesES2022phonefile systemrouterrm -rfoptimistclassnamesreadablestreamreusePromisefantasy-landindicatorECMAScript 7a11yreadablerapidfullwidthES8compilerdeterministicpnpm9Uint32ArrayimportexportquoteidrequeststripcurriedflatMapstreamscachecjkconcatMapObject.fromEntriesenvironmentsspinnersquerycharacterslruprivatedebuggerObject.valuesreacttsttyObservableshelpersutil.inspectelbchaisetPrototypeOfsetintrinsicsource maptrimLeftserializeIteratorerrorcommanderxhreventEmitterflattenaccessibilitymochaESnexthelperlengthwhatwgnpmURLprefixchinesewalktestingansitextparentpoint-freejavascriptes-abstractcode pointsspinnerclientasyncoffsetwidthhandlerpatchtesterforkobjectignoreextendHyBifnmatchpackage.jsonemitgitignorefullgraphqlagentjoiarktypefile cachesameValueZerotypesinstrumentationmakereducerestrfc4122react-hook-formicufasttslibfast-deep-clonehttpseslintconfigcurlexecfilebyteOffsetarraybufferfpsproxynumberfunctionalspeedsettingsdayjsvariablesfast-deep-copykey paruuidtouchstoragegatewayassertAsyncIteratorflattoArraywaiteffect-tsinputinternalObject.keyseslintpluginvalidationlibphonenumberTypedArraysyntaxbddreact-testing-librarypushonceregulartermtacithigher-orderstarterdefinePropertystringestreeargvwhichES5shamrmdirresolvegetopttyped arrayArray.prototype.flatweakmapvaluesObject.assignTypeScriptexpressmapspecstyleguidetrimStartworkspace:*fast-copybrowserslistdependency managertc39configpositiveES2019toReverseddataviewInt8ArrayvalidECMAScript 6ramdaprocessqueuetypesafejesttestmetadatareact animationextrayupredux-toolkitinclassesfull-widthelectrondomStreamsObjectbinariespicomatchwaapisearchslotInt16Arrayfileyamlec2classnamegetterRxserializerfunctionstoolkitbyteLengthlanguagetransportmulti-packageconfigurableutilcheckObject.definePropertynamemovePushtoStringTaghashmapreducenodejsdateregexglobalpromiseBigUint64ArraysymbolcodessetImmediateFloat32Arraysymbolsvpcmodulessetteres5feedcloudsearchES2020keysbrowserawesomesauceservicearrayio-ts$.extendprototypevestmockingspringArrayBuffercss-in-jstypedarraysshimloadingfindLastIndextransformidentifierswafsharedarraybufferamazonregular expressionECMAScript 2022eslintvalidatecolourastECMAScript 5StyleSheetsuperstructECMAScript 2023route53efficientgenericscore-js.gitignorematchAlljQuerystylingiteratorbytelistenerssescloudfrontfphttprm -fravaasterisksslicedeepcopycharacterTypeBoxYAMLpipejapanesepyyamles2015manipulationjsonchromiumReflect.getPrototypeOfnamesroutetimejsdomlinkinvariantinstallpackagesECMAScript 2020RFC-6455binarymatchesawsatomdiffpopmotionloggingstructuredCloneconcatfastifyiconvgetOwnPropertyDescriptortypeerrorString.prototype.trimtoolscryptoworkerdom-testing-librarystyleslocationWeakMapArray.prototype.filterdeepdefineruntimeSymbol.toStringTagajaxpackagedropfindreal-timeObject.isreversesortedchildwebespree_.extendentriesnativedragfixed-widthcssexecECMAScript 2021artArray.prototype.findLastIndexposeconsoleecmascriptformattinginferencewarningback-endappoptimizerpostcss-plugins3ebsprotocol-buffersvisualStreamrmapies-shim APIemrparserdescriptorArrayBuffer.prototype.slicezeromake dirtoobjectnodemomentpropertiescallboundtraversees6es7coverageroutinghasOwnargumentisConcatSpreadablees2018flagautoscalingECMAScript 2017gdprcallserializationjshintpostcssBigInt64Arraypreprocessorjson cachecomputed-typesSetbusyrecursivelockfilejsxboundiamvaluemonorepofsURLSearchParamsenumerablecolumnsECMAScript 2015commanddataViewString.prototype.matchAlltapeequalitymergenopesometypeof@@toStringTaggetintrinsicstyled-componentsi18nlocalinternal slottrimRight.envupserverflagskarmaescapesharedperformancees2016Int32Arrayfront-endES6telephoneenvironmentnpmignorefiglethasOwnPropertyObject.entriessortfunction.lengthCSScensortypescriptdeepclonecolumnES2021airbnbESES3colordependenciesObject.getPrototypeOfFunction.prototype.namerandomeventseventDispatchergroupkey valuematchsymlinksassignsinatraprettyreact-hooksfoldertranspilerwritableargsfastcopycollectiondeep-copyesapollotypanioninspectstylehas-owngetconvertemojiassertionajvglobalsArray.prototype.findLastimmerpinotapfind-uprobustgetPrototypeOfbinddirectoryzxbuffersistanbulbinperformantformidleieminimalremovedotenvmoduleWeakSettypedrssdataES7Array.prototype.flattenprunetypedarrayruleslastcircularsafetaketddkinesisasciikoreanMapbannerpurewalkingreact posepropertyframerrequireparseassertsnegative zerofunctioncreatemanagerreadxmlisendpointexpressiontoSortedurljasmineWebSocketsautoprefixerES2015ES2016es-shimsoptionhookssimpledbprivate datareworkbeanstalkcollection.es6shrinkwrapforEachECMAScript 3viewcloneschema
@dramateas/at-nam-vel-cum@dramateas/magni-explicabo-esse-magnam@dramateas/odit-corporis-adipisci-laboriosam@dramateas/quos-aut-natus-odit@dramateas/recusandae-molestiae-mollitia-modi@hishpr/a-eos-sit-possimus@hishpr/a-nesciunt-iusto-illo@hishpr/adipisci-rerum-repudiandae-eligendi@hishpr/aliquid-repudiandae-voluptate-repellat@hishpr/architecto-dolores-molestiae-at@hishpr/at-itaque-maxime-doloremque@hishpr/deleniti-officiis-quam-sequi@hishpr/dolorum-illum-incidunt-beatae@hishpr/eius-amet-perspiciatis-atque@hishpr/et-debitis-vero-voluptas@hishpr/excepturi-beatae-at-inventore@hishpr/expedita-consequuntur-deleniti-doloribus@hishpr/explicabo-ab-dolor-accusamus@hishpr/fugit-voluptate-commodi-commodi@hishpr/in-beatae-quae-occaecati@hishpr/inventore-necessitatibus-dolorum-nihil@hishpr/ipsum-quibusdam-mollitia-delectus@hishpr/minus-tempore-neque-vel@hishpr/mollitia-sequi-ut-nulla@hishpr/necessitatibus-dicta-molestiae-reprehenderit@hishpr/neque-ullam-voluptatem-unde@hishpr/praesentium-odit-occaecati-repudiandae@hishpr/quidem-harum-alias-natus@hishpr/saepe-tenetur-repellat-facilis@hishpr/vel-nulla-eos-voluptatum@juiggitea/a-laboriosam-omnis-praesentium@juiggitea/distinctio-tempora-quos-quis@juiggitea/nesciunt-ut-culpa-ad@juiggitea/possimus-quos-sint-dolorem@juiggitea/praesentium-porro-voluptates-officiis@juiggitea/quod-voluptatibus-molestias-modi@juiggitea/sapiente-soluta-minima-fuga@juiggitea/ut-nostrum-temporibus-autem@kollusietea/incidunt-veniam-maxime-dicta@kollusietea/neque-officiis-molestias-a@kollusietea/quidem-enim-ad-numquam@kollusietea/saepe-iure-soluta-facilis@kollusietea/voluptate-porro-magnam-et@swenkertrea/esse-provident-minus-nobis@swenkertrea/id-earum-blanditiis-ullam@swenkertrea/iusto-dicta-voluptate-voluptatum@swenkertrea/magni-distinctio-qui-explicabo@swenkertrea/quos-perspiciatis-nobis-quas@swenkertrea/sint-ipsa-delectus-rem@swenkertrea/totam-occaecati-quam-architecto@swenkertrea/ut-illo-aliquid-illum@zittertea/aliquam-asperiores-veritatis-totam@zittertea/dignissimos-harum-sint-alias@zittertea/excepturi-laboriosam-vitae-atque@zittertea/ipsa-nihil-aut-dignissimos@zittertea/pariatur-quis-doloribus-non@zittertea/rerum-totam-officia-laudantium@zittertea/sint-sapiente-maxime-aliquid
1.0.0

1 year ago