Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Mendez committed Jun 5, 2017
1 parent ee45e5d commit 53afcb1
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ def = \
where each *FIELD_NAME* can be any identifier,
and each *FIELD_TYPE* can be any of the primitive types.

The URIs can be shortened by using prefixes. The prefixes are URIs themselves without colons, because the colon (`:`) is used to define the association.

```properties
prefix = \
PREFIX_0:URI_0 \
PREFIX_1:URI_1 \
...
PREFIX_n:URI_n
```

The prefixes are sorted by alphabetical order. They are applied using that order during parsing and serialization. Although the serialization shortens every possible URI using the prefixes, it is possible to expand all of them by adding the empty prefix with an empty value, i.e. a colon (`:`) alone. This could be useful to rename the prefixes.

The order in which the instances are shown is defined as follows:

```properties
Expand Down Expand Up @@ -130,6 +142,10 @@ def = \
documents:List_URI


prefix = \
arxiv:https://arxiv.org/


order = \
id

Expand All @@ -152,11 +168,11 @@ id = arXiv:1412.3313
title = Infinitary stability theory
authors = \
Sebastien_Vasey
web = https://arxiv.org/abs/1412.3313
web = &arxiv;abs/1412.3313
documents = \
https://arxiv.org/pdf/1412.3313#pdf \
https://arxiv.org/ps/1412.3313#ps \
https://arxiv.org/format/1412.3313#other
&arxiv;pdf/1412.3313#pdf \
&arxiv;ps/1412.3313#ps \
&arxiv;format/1412.3313#other


```
Expand Down

0 comments on commit 53afcb1

Please sign in to comment.