1.1.3 • Published 11 days ago

@teamteanpm2024/alias-officia-eum v1.1.3

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

@teamteanpm2024/alias-officia-eum

build status npm version

N-Triples serializer that implements the RDF/JS Sink interface.

Usage

The package exports the serializer 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 serialization. It expects a quad stream as argument. The method will return a stream which emits N-Triples as strings. The constructor doesn't need any options.

Example

This example shows how to create a serializer instance and how to feed it with a stream of quads. The N-Triples string emitted by the serializer will be written to the console.

import rdf from '@rdfjs/data-model'
import { Readable } from 'readable-stream'
import SerializerNtriples from '@teamteanpm2024/alias-officia-eum'

const serializerNtriples = new SerializerNtriples()
const input = Readable.from([
  rdf.quad(
    rdf.namedNode('http://example.org/sheldon-cooper'),
    rdf.namedNode('http://schema.org/givenName'),
    rdf.literal('Sheldon')
  ),
  rdf.quad(
    rdf.namedNode('http://example.org/sheldon-cooper'),
    rdf.namedNode('http://schema.org/familyName'),
    rdf.literal('Cooper')
  ),
  rdf.quad(
    rdf.namedNode('http://example.org/sheldon-cooper'),
    rdf.namedNode('http://schema.org/knows'),
    rdf.namedNode('http://example.org/amy-farrah-fowler')
  )  
])
const output = serializerNtriples.import(input)

output.on('data', ntriples => {
  console.log(ntriples.toString())
})
symlinkInt32ArraydragRxJSdefinePropertyletStreamsArrayBuffer.prototype.slicees5es2016middlewaredescriptionTypeBoxpuresetPrototypeOfreadablejsrapidrm -frObject.isintrinsiclimitednested csslinkwebnodejsargumentincludesfunctionsstylessomeentriesobjextendtslibbusystyled-componentsopenerfindweakmapstreams2apollointernalPromisecharacterfunctionalxdg-openmergeindicatores2017apideep-clonelook-upxdgtacitfind-uprangeerrorgetOwnPropertyDescriptorschemasortextraauthenticationUint8ClampedArrayextensiongetterwarningenvtoobjectwritejoitrimRightmixinsObject.fromEntriesjapaneseoptimistassertionstarterhigher-orderformatmetadataHyBideepcopytypedarraysspeedflatclassnamespasswordmkdirpuninstallquerythrottlexhrratelimitbundlingAsyncIteratorexecutablemoveargparsepushjsdomIteratormake dirwalkingconcatMap256harmonyhasparserformpropertyregularurlssignalsapp3drandompackage.jsonbrowserlistinspectspinnersdataViewprivateconstjavascripteventEmitter__proto__eslintsymlinksjson-schema-validatoreventsSetspinnerObject.definePropertycorsredux-toolkitstyletrimLeftlockfileES6validatespecdirectoryqsserializefantasy-landtyped arraymonorepolesscsserror-handlingisstructuredClonefastemojilinewrapconcurrencyopensjasminees-shimslruregexirqWebSocketslimitidlejsdiffequalityopenawaitECMAScript 2016yupfindLastIndexArray.prototype.includestraverseinputarktypeECMAScript 7ES2016fastifyiepackagessyntaxwritablefile systempoint-freerobustWeakMapduplexassignreact-testing-libraryremovecolorstypeschecknegativeforEachwindowsCSSStyleDeclarationes8lengthECMAScript 2021authTypedArrayArray.prototype.flatMapenderbrowserslistObservablefast-cloneeslintconfigarraystesterutilscss lessFloat32Arrayregular expressionbluebirdfilterhandlersqueueMicrotaskkoreandeeplasttypeddeepcloneoncerequestarrayES2017protocoloranimationsanitizeshamshimsyntaxerrorReactiveExtensionsfolderFunction.prototype.nameexit-codeexechannelArray.prototype.flattenutil.inspectlanguageaccessorhttpcallweaksetECMAScript 2017callboundpopmotionlessclassnamechromeurlwatchingairbnbES2021Object.getPrototypeOfbytevaluespyyamltestcachestatelesscliastfastcopyefficientcommandeslintpluginuuidyamldependency managerpolyfillajaxenvironmentinvariantsafeiteratorinternal slotexitpatchstreamomitpicomatcheast-asian-widthprotobuftddpackage managerReflect.getPrototypeOfutilstringconfigwhatwgbufferelectronbuffersSymbolconfigurableflattenvariables in cssnumberprunestatusmimetypesmomentchinesepromisespipecolourrm -rfisConcatSpreadablees-abstractUint32ArrayqueuesameValueZerottydescriptorObservablesnopewatcheditortrimEndes-shim APItermObject.keysbabel-coregradients cssvalidationprefixnegative zerofindLastquotesettingsgesturesworkerArray.prototype.containskarmareact-hook-formwalkPushavaperformantwebsitesortedfigletmakeInt16ArraytranspileESnextmime-dbimmutablebatchhardlinkstypesafe@@toStringTagsanitization$.extenddom-testing-libraryconsoleRxless.jsencryptionchromiumiterationgdprECMAScript 2018RegExp.prototype.flagsfsterminaltelephone.envarguments0hooksUint8Arrayassertoptionenumerablezerochildlookcompile lesstranspilerprototypefast-deep-copysliceprotocol-buffersObjectglobvisualjsonschemacrypthasOwnES5es6byteOffsetautoprefixerES2019immerreadexecnodewordbreakmatchutilitychailinuxES2018fastclonezodesObject.valuesUnderscore[[Prototype]]matchAllimportemitfullcurriedgradients css3Arrayequaldatewidthprivate datasuperstructframeworktoStringTagregular expressionsshrinkwrapxssdefaultphoneoptimizerRFC-6455dotenva11yECMAScript 2022Array.prototype.findLastIndexvalidatorInt8ArraytaskcompilerthreeString.prototype.trimfullwidthupreusefull-widthcallbackArray.prototype.flatdeletemruhashESviewvalueECMAScript 2019l10npostcss-pluginpropless cssspringwatchFilematchesES7Uint16Arraycss nestingdependenciesvestURLString.prototype.matchAllslotfileestreesetImmediateuser-streamsflagsbootstrap lessargvtypeerrorkeyes2015varpathdayjssetclonewatcherreacttestingcjkwordwrapparserecursivereducetouchcomparegrouplogserializationloadingramdaparentsbabelmodulemkdirssymbolSymbol.toStringTagBigUint64ArrayclientStyleSheettoolkitreact-hooksansiquerystringES2022rmdireveryES8flagCSSpackagedatacommand-lineredactsymbolsiteratehelperscopyECMAScript 2023debugcurlwrapnativebootstrap cssECMAScript 5waapipluginsigtermoperating-systemlintstreamsbundlerbddbannervariablesreact posemochatc39debuggerlibphonenumberdescriptorsmulti-packagegetoptmimees2018ES2023finduptypedarraysidefetchcallbindstartsharedarraybuffershebangreadablestreamES20206to5asciicoerciblegroupByserializerinferencekeysstablereact animationdefinedeterministicMicrosoftgetPrototypeOfbyteLengthsuperagenttoolstapeoffsetjsxresolvestringifierartspawnbcrypttexti18nwaitArrayBufferreducerJSON-Schemacollectionsearchtypefseventstimeinstallercore-jsjestjson-schema-validationguiddirgraphqlfpObject.entriesponyfillajv_.extendlazypreserve-symlinksreduxpostcssjwtinterruptsecmascriptbrowsercollection.es6npmlistenerstypanionhttpsargssequenceYAMLawesomesaucepnpm9ES3formattingperformancetscall-bindjsonArrayBuffer#slicetrimStartcommanderpromisereal-timewgetmkdirECMAScript 6columnReactiveXruntimeassertstoSortedstylesheetless mixinsclass-validatorcode pointsfunctionposeeslint-plugindeep-copyArray.prototype.findLastform-validationtakebind-0Array.prototype.filterprocessrmflatMapcircularrgbxtermtrimpositivetypescriptpropertiesshellerrorBigInt64Array
1.1.3

11 days ago

1.0.3

12 days ago

1.0.2

13 days ago

1.0.1

14 days ago

1.0.0

15 days ago