Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
wikibase-data-model
Advanced tools
JavaScript implementation of the basic Wikibase DataModel entity types and components they are made of
Wikibase DataModel JavaScript is the JavaScript implementation of the basic Wikibase DataModel at the heart of the Wikibase software. As the PHP implementation of the DataModel, this library only implements the basic Item and Property entity types, and the components they are made of.
Wikibase uses this library together with the Wikibase Serialization JavaScript library to deserialize API responses from serialized JSON to actual DataModel objects. These objects can then be consumed and manipulated via convenient getter and setter methods, turned back into JSON via the corresponding serializer, and send back to the API.
index.js
exporting all public data model partsEntity.getFingerprint
Entity.setFingerprint
ClaimGroup
ClaimGroupSet
ClaimList
SnakList.getValidMoveIndices
SnakList.move
SnakList.moveDown
SnakList.moveUp
SnakList.getFilteredSnakList
privateItem.addStatement
Item.removeStatement
Property.addStatement
Property.removeStatement
hash
constructor parameter and a getHash
method to Snak
,
PropertyValueSnak
, PropertySomeValueSnak
, and PropertyNoValueSnak
.Set::toArray
.Fingerprint::setLabel
, setDescription
and setAliases
remove the element when null or an
empty Term or MultiTerm is given.MultiTerm.getTexts
.numeric-id
and entity-type
fields from toJSON
return valueid
field to toJSON
return valuenumeric-id
and entity-type
arguments from EntityId constructorid
argument to EntityId constructorWIKIBASE_DATAMODEL_JAVASCRIPT_VERSION
PHP constant.init.php
now depends on MediaWiki >=1.25.Term
and MultiTerm
do not accept empty language codes any more.GroupableCollection.toArray
and List.toArray
Group.getItemContainer
and setItemContainer
propertyId
parameter from Claim.getQualifiers
.SnakList.getFilteredSnakList
can not be called with null
any more.Group.equals
and the List
, Map
and Set
constructors.Initial release.
FAQs
JavaScript implementation of the basic Wikibase DataModel entity types and components they are made of
We found that wikibase-data-model demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.