- Changed range of
ds:defaultLanguage
from string to array of strings.
- Technical API documentation updated and published.
DsUtil.availableVersions
is now provided by a function instead:DsUtil.getAvailableVersions()
- TypeScript: Added wrapper-type for nodes in the
@graph
array:GraphNodeV7
- Fix:
sh:flag
should besh:flags
, there was a small error in the DS Specification page.
- TypeScript: Added type
PropertyRangeShNodeV7
which is a property range wrapped bysh:node
.
- TypeScript: Now exports all classes provided by this library.
- Node/TypeScript: All types and interfaces that may be interesting for the user are being reexported in index.d.ts now.
- Update of dependencies.
- Renamed type
PathTokenObject
toPathTokenObjectV7
.
identifyDsGrammarNodeType()
now has a parameter calledfollowReference
(boolean), which tells if the function should follow the reference to return the node type of the referenced node instead of the reference type itself.
- Removed the type
DsV7Unpopulated
, since it was ignoring internal references. Correcting this type results in being the same asDSV7
(populated), so it was deleted.
- Refactored the whole library in TypeScript. Better support for types and the TS environment.
- The way how this library is supposed to be imported has changed, see README.MD for details.
- Function
prettyPrintCompactedIRI()
has been renamed toprettyPrintCompactedIRIs()
- there is ans
at the end. There have been other minor renames. - Documentation must be updated yet!
- new DS-V7 functions:
getDataTypeLabel()
getDsDataTypeForSchemaDataType()
getSchemaDataTypeForDsDataType()
identifyDsGrammarNodeType()
tokenizeDsPath()
- Changes for DS-V7 functions:
dsPathInit()
also usable with"Context"
as initial token.dsPathGetNode()
now has the new argument "resolveReference" (default isfalse
)
- Upgraded used version of schema-org-adapter. DS-utilities still works with the previous version though.
- Refactoring of the checkClassMatch function to use only functions that are available in Node 10. (flatMap() is 11+)
- Introduction of the
checkClassMatch()
function to DS-v7.
- Introduction of the
verifyDs()
function to DS-v7.
- Improved comments on functions to clarify if returned values are references or clones.
- Changed
getDsTargetClasses()
andgetDsExternalVocabularies()
to return clones instead of references of the original DS.
- Added
ds:propertyDisplayOrder
to the DS-V7 standard @context
- First Release!