Skip to content

Commit

Permalink
edit RDF graphs section
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenchong committed Mar 12, 2019
1 parent 5de6ca6 commit ab96e6b
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions docs/eml-semantic-annotations-primer.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,18 @@ Taken together, the semantic statement could be read as "'adam.shepherd' (the cr
</eml>
```

## Example RDF Graphs
Below are examples of how annotations can be converted to RDF triples. The parts of a triple (subject, predicate, and object)
become nodes and links in a graph.
## RDF Graphs

![RDF example A](images/RDF_example_a.png "Graph from Example 3 (attribute annotation):")
A graph consists of resources linked to other resources. There isn't a root or hierarchy structure, indicating that

The parts of a triple (subject, predicate, and object) become nodes and links in a graph.

Below are examples of how annotations can be converted to RDF triples in RDF/XML, so that they are now computer-readable. Be aware that there are several formats for serializing RDF, including RDF/XML, Turtle, N-Triples, and N3, that vary in how human-readable they are.

### Graph from Example 3 (attribute annotation):


![RDF example A](images/RDF_example_a.png "Graph from Example 3 (attribute annotation):")

```xml
<rdf:RDF
Expand All @@ -333,6 +340,9 @@ become nodes and links in a graph.
```
_Note: The subject described in the `rdf:Description` `about` attribute should actually be the globally unique URI for the attribute, rather than 'att.4'_


### Graph from Example 4 (using `annotations` element):

![RDF example B](images/RDF_example_b.png "Graph from Example 4 (using <annotations> element):")

```xml
Expand Down

0 comments on commit ab96e6b

Please sign in to comment.