Repository navigation
chore: release - #425
Merged
Merged
chore: release#425
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@_linked/core@3.0.0
Major Changes
#424
3a64295Thanks @flyon! - Prefixes are the app's, and ontologies register with one call per package.registerOntologies(ontologies, moduleUrl)replaceslinkedOntology, which is removed. A package'ssrc/ontologies/index.tsimports its terms modules (only{id}literals) and registers them all:registerOntologies([{name, namespace, terms, data?, suggestedPrefix?}], import.meta.url),datarelative tomoduleUrl. It registers no prefix.OntologyRegistrationhasnamespaceandsuggestedPrefixinstead ofns;suggestedPrefixes()lists{packageName, name, namespace, prefix}.registerInstalledOntologiesimports<pkg>/ontologies/indexinstead ofontologies/*.registermodules.rdf,rdfs,owl,xsd,shacl,sd,prov,core; the deprecatedlinked_corelabel is gone). An app loads its map withPrefix.load(map)(replaces the map in use;PrefixMapisRecord<prefix, namespace>);Prefix.toMap()returns it.UnknownPrefixError(naming the prefix and the value) wherever a prefixed name is expanded:Prefix.toFull, query subjects (.for('ex:a')),update().foranddeleteids (which were never expanded before), and property path steps (which were written as<p:x>with a warning). A string with://or the schemehttp,https,urn,mailto,did,fileordatais a full IRI (Prefix.isFullIri).Prefix.toFull,toPrefixed,toPrefixedIfPossible,getFullURI,getPrefix,findMatch,resolveUriOrThrow,resolveNodeId,pathRefIri,expandPrefixedName.Prefix.toFullIfPossible,resolvePrefixedUri,expandRegisteredPrefixedName(nowexpandPrefixedName, which throws),linked-core.register.linked-core.tsexportscoreOntologyonly (nons,_self,dataFiles,loadData).Minor Changes
7e2ca24Thanks @flyon! -linkedOntology(terms, ns, name, loadData?, dataFiles?): the third argument is the ontology's name within its package (unique in the package, need not equal the module's file name), not a prefix.OntologyRegistration.prefixis now.name, and the registry is keyed by package and name. A registration an older copy of core wrote (aprefix, noname) is skipped with one warning.linkedOntologystill registers the name as a prefix withPrefix.Patch Changes
#424
50ef261Thanks @flyon! - Comments state the IRI and routing rules inline.#424
6fb74a6Thanks @flyon! -@_linked/core/ontology/loadOntologyFiles: its documentation describes howregisterOntologiesloads an ontology'sdatafiles.#424
7eac669Thanks @flyon! - The ontology is declared inpackage.json"linkedOntologies"and its data states its suggested prefix and namespace (vann:preferredNamespacePrefix,vann:preferredNamespaceUri); the module stays hand-written ("generated": false). No import path or export changes.