jsonschema
PyLD
Our great sponsors
jsonschema | PyLD | |
---|---|---|
3 | 28 | |
394 | 543 | |
- | 1.3% | |
0.0 | 0.0 | |
10 days ago | 6 months ago | |
Rust | Python | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
jsonschema
-
web service framework and OpenAPI spec
Checkout this crate https://crates.io/crates/jsonschema
-
Show HN: Pg_jsonschema – A Postgres extension for JSON validation
The `jsonschema` crate author here.
First of all, this is an exciting use case, I didn't even anticipate it when started `jsonschema` (it was my excuse to play with Rust). I am extremely pleased to see such a Postgres extension :)
At the moment it supports Drafts 4, 6, and 7 + partially supports Draft 2019-09 and 2020-12. It would be really cool if we can collaborate on finishing support for these partially supported drafts! What do you think?
If you'll have any bug reports on the validation part, feel free to report them to our issue tracker - https://github.com/Stranger6667/jsonschema-rs/issues.
Re: performance - there are a couple of tricks I've been working on, so if anybody is interested in speeding this up, feel free to join here - https://github.com/Stranger6667/jsonschema-rs/pull/373
P.S. As for the "Prior Art" section, I think that https://github.com/jefbarn/pgx_json_schema should be mentioned there, as it is also based on `pgx` and `jsonschema`.
PyLD
- I Wrote an Activitypub Server in OCaml: Lessons Learnt, Weekends Lost
-
I'm currently in the interview process for a Jr. Full Stack Developer position, and I was given this take-home test that has me on the verge of pulling my hair out.
3) Things I would need to refresh: JSON-LD (This is actually really useful): https://json-ld.org/
Id also take a bit of time polishing your work. If its a front end dev job, it helps if you make things pretty. Make sure you also read and note down what you missed. I havent done a deep dive but I didnt see any JSON-LD for instance (https://json-ld.org/). you could implement this by saving the json contents in a const object and just add the @ tags in the object.
-
SEO Benefits of Next.js in 2022
There’s another way you can help Google understand the content of your web page better. You should incorporate a particular JS snippet into your HTML that describes the page content according to a JSON-LD format that gives machine-readable information about the website.
- how do i write metadata, and how can i make it cooler?
-
QWER : Simply Awesome Blog Starter built with SvelteKit and Love
SEO friendly through meta, Open Graph, Schema, JSON-LD, microformats2.
-
Understanding SEO and Web Vitals for your NextJS site and how to improve them?
We can help google search engine understand the content of our site even more by adding structured data with the help of JSON-LD. Google can use the structured data to enable special search features which in turn boost your page rank. You can read more about this here: https://developers.google.com/search/docs/advanced/structured-data/intro-structured-data
-
The Block Protocol
Exactly what I was thinking. The Semantic Web done the heavy lifting of defining general schemas (https://schema.org) and extending JSON (https://json-ld.org) and yet people don't subscribe to it. On the other hand, it has a lot of historical baggage (RDF, old schemas) that maybe a new standard can actually be better
-
What is Structured Data?
Web pages are an interesting example of both structured and unstructured data. There are specific elements one could look at for certain information like the element or other semantic elements like
or
. The problem though is that these elements are more like our "address" example earlier - they often contain more than just the strict data we are looking for. A title might have a prefix or suffix of the website's name. An article or section might have many other layers of
,or any other elements to help form the site's structure. To top it off, the HTML structure can vary wildly from site to site. If you were wanting to extract data from multiple websites, it can get very hard very fast.
That said, there are a number of ways to embed structured data into web pages. A web page could use Microdata, RDFa, JSON-LD or Open Graph to express structured data. More than that though, a web page can use multiple of these at the same time. Open Graph is commonly used as a method of defining details for a link preview while the others might express more complex data like product pricing or reviews.
Having standard formats like Microdata or JSON-LD are a good start but only represent the format of the data - we need a common vocabulary so we can understand the data those formats encode. One common vocabulary used is called Schema.org and provides over 700 types including types to describe people, places, products, recipes, reviews, vehicles, movies and medical devices. Using Schema.org for structured data on a website can help search engines provide richer experiences in the search results.
Summary
Structured data, through standardising expected properties and value formats, makes the sharing and processing of data easier. Web pages in particular benefit from encoding structured data in their mark-up where it can be used by search engines and other tools.
-
Json-ld spices up the staticness of static site generator
Json-ld is a linked data format based on json. If you have never heard of json-ld, that's ok. The most important thing to know is that it's just plain old json with a few extra special fields. It's also a w3c standard and you can check out the complete spec. We don't really need to understand the whole spec, we're just interested in the way json-ld can reference other data fragments with a url using the keyword "@id "
What are some alternatives?
Fast JSON schema for Python - Fast JSON schema validator for Python.
marshmallow - A lightweight library for converting complex objects to and from simple Python datatypes.
RDFLib plugin providing JSON-LD parsing and serialization - JSON-LD parser and serializer plugins for RDFLib
ultrajson - Ultra fast JSON decoder and encoder written in C with Python bindings
rdflib - RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.
lupin is a Python JSON object mapper - Python document object mapper (load python object from JSON and vice-versa)
serpy - ridiculously fast object serialization
jsons - 🐍 A Python lib for (de)serializing Python objects to/from JSON
logseq - A local-first, non-linear, outliner notebook for organizing and sharing your personal knowledge base. Use it to organize your todo list, to write your journals, or to record your unique life.
hjson-py - Hjson for Python