How GraphQL delivers on the original promise of the semantic web. Or not.

A triple describes a relation in three parts — subject, predicate, and object

Figure 1: A triple describes a relation in three parts — subject, predicate, and object

Using triples captures both entities and relationships

Figure 2: Using triples captures both entities and relationships

Applying an XML based ontology to an HTML document does not affect visual rendering

Figure 3: Applying an XML based ontology to an HTML document does not affect visual rendering

A snippet of HTML that implements the Friend of a Friend (foaf) vocabulary as an XML namespace

Listing 6: A snippet of HTML that implements the Friend of a Friend (foaf) vocabulary as an XML namespace

Putting an ontology on the internet as a namespaced resource provides a semantic definition that is common to both publishers and consumers of information

Figure 4: Putting an ontology on the internet as a namespaced resource provides a semantic definition that is common to both publishers and consumers of information

Applying the SIOC ontology to describe a "likes" relationship

Listing 7: Applying the SIOC ontology to describe a "likes" relationship

Data defined in an RDF dataset expressed in a semantics graph

Figure 5: Data defined in an RDF dataset expressed in a semantics graph

Using the Connection suffix is a convention that has emerged in the GraphQL community for identifying edges

Figure 6: Using the Connection suffix is a convention that has emerged in the GraphQL community for identifying edges (aka predicates)

The "Connection" naming convention implies the relationship between an entity and an array of entities

Figure 7: The "Connection" naming convention implies the relationship between an entity and an array of entities

A GraphQL query that declares a likeConnection

Listing 12: A GraphQL query that declares a likeConnection

A likesConnection returns an edges collection

Figure 8: A likesConnection returns an edges collection

+

Esta página está disponible en español

Ver en español