Extension:VisualData/Edit data
Edit data
[edit]Through the "Edit data" tab is possible to assign dynamically one or more pre-defined schemas (i.e. schemas previously created through the Schema Builder) to a wiki article. The schemas data will be registered in a dedicated slot with json content-model alongside the page and it is possible to perform CRUD operation through the form.
This is the dialog allowing to add/remove schemas to the wiki article:
This is how appears a schema after is assigned to the article:
Entered data are validated (based on the defined schema) using ajv-validator and after being inserted can be queried using VisualData's queries, or accessed through the standard Mediawiki Api, with a request like the following:
A straightforward and effective way to query data associated to an article is to print an infobox using the following parser function:
Here is the related wikitext/parser function:
{{#visualdataprint: {{FULLPAGENAME}} |?cover |?title |?authors/name |?authors/email |schema=Book |template=Book |template?authors=Book authors |format=template }}
(see here for more information)
See also
[edit]- Demo VisualData 1.0
- New article UI
- Schema Builder
- File upload
- Edit data
- Forms
- Geolocation
- Queries
- Queries in forms
- Result formats
- Browse data
- Maintenance scripts
- Dynamic catalogue