weso / pschema-rs Goto Github PK
View Code? Open in Web Editor NEWPregel-based schema validation algorithm written in Rust for generating Wikidata subsets
Home Page: https://crates.io/crates/pschema-rs
License: GNU General Public License v3.0
Pregel-based schema validation algorithm written in Rust for generating Wikidata subsets
Home Page: https://crates.io/crates/pschema-rs
License: GNU General Public License v3.0
See the data model of Wikibase for further information on the structure of the data to be handled by pschema-rs
.
First, regarding Values, which are the basic objects representing a particular thing, ranging from Literal or DataValues, to Entities, holding a DataType, an Item and a Property. According to the following schema:
The following table summarizes the supported Values:
Feature | Supported | Comments |
---|---|---|
DataValue | ✔ | |
Entity | ✔ | |
DataType | ✔ | |
Item | ✔ | |
Property | ✔ |
Second, a finite set of datatypes are supported by Wikibase. According to this, for the purpose of this library, a simplification of the Wikibase set of accepted types can be implemented. For the whole picture of the set of Wikibase datatypes, see:
Regarding the supported DataTypes, the set of accepted ones is as follows:
Feature | Supported | PSchema Representation |
---|---|---|
StringValue | ✔ | String |
QuantityValue | ✔ | Quantity |
MonolingualTextValue | ✔ | String |
TimeValue | ✔ | DateTime |
MultilingualTextValue | ✔ | String |
GeoCoordinatesValue | ✔ | Coordinates |
IriValue | ❌ | ShapeReference |
The Statements describe the claim of a statement; that is, it establishes relationships between entities. The complete structure is described as follows:
Regarding the supported features, the currently implemented ones can be seen in the following table:
Feature | Supported | Comments |
---|---|---|
Statement | ✔ | |
Qualifiers | ❌ |
Regarding the main features supported by WShEx schemas, the currently supported functionalities can be seen in the following table:
Feature | Supported | PSchema Representation |
---|---|---|
Triple constraints | ✔ | TripleConstraint, ShapeAnd, ShapeOr |
Cardinality | ✔ | Cardinality |
Labels, descriptions and aliases | ❌ | |
Value sets | ✔ | ShapeOr |
Bult-in DataTypes | ✔ | ShapeLiteral |
Facets | ❌ | |
Qualifiers | ❌ | |
References | ✔ | ShapeReference |
Ranks | ❌ | |
SiteLinks | ❌ |
pschema-rs
can operate with data in several formats, the currently supported ones can be seen in the table below:
Feature | Supported | Comments |
---|---|---|
DuckDB Import | ✔ | |
DuckDB Export | 🕒 | Even if it's planned, we are waiting for the pola-rs release |
Parquet Import | ❌ | |
Parquet Export | ✔ | |
NTriples Import | ✔ | |
NTriples Export | ✔ |
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.