Skip to content

Commit 97068f4

Browse files
authored
Merge pull request #509 from semanticarts/feature/gist_style_guide_updates
gist style guide updates
2 parents 869adb7 + 911dba0 commit 97068f4

File tree

1 file changed

+43
-15
lines changed

1 file changed

+43
-15
lines changed

docs/gistStyleGuide.md

Lines changed: 43 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,39 @@
1-
gist Style Guide [ IN PROGRESS ]
1+
gist Style Guide <!-- omit in toc -->
22
=====
33

4-
Purpose of this document
4+
- [Purpose of this style guide](#purpose-of-this-style-guide)
5+
- [OWL Version](#owl-version)
6+
- [Serialization](#serialization)
7+
- [Naming: Local Names](#naming-local-names)
8+
- [Classes](#classes)
9+
- [Properties](#properties)
10+
- [All](#all)
11+
- [Naming: Labels](#naming-labels)
12+
- [Classes](#classes-1)
13+
- [Properties](#properties-1)
14+
- [gist Definition of Title Case](#gist-definition-of-title-case)
15+
- [Annotations](#annotations)
16+
- [Conventions](#conventions)
17+
- [Rationale](#rationale)
18+
- [Documentation](#documentation)
19+
20+
Purpose of this style guide
521
-----
622

7-
The purpose of this document is two-fold:
23+
The purpose of this evolving document is two-fold:
824

925
- Define and implement conventions in order to standardize gist.
1026
- Articulate what we consider best or "better" practices for ontology design and implementation.
1127

28+
-----
29+
1230
OWL Version
1331
-----
1432

1533
gist uses OWL 2 DL.
1634

35+
-----
36+
1737
Serialization
1838
-----
1939

@@ -23,12 +43,12 @@ Serialization
2343
In order to use the standard settings, copy the provided `pre-commit` script from the `tools/` directory in the repository to `.git/hooks/` after the repository is cloned,
2444
and ensure that `JAVA_HOME` is set in your environment. This script will only format RDF files, ignoring all others.
2545

26-
Naming
2746
-----
2847

29-
### Local names
48+
Naming: Local Names
49+
-----
3050

31-
#### Classes
51+
### Classes
3252

3353
- Camelcase with initial uppercase
3454
- Acronyms are also camelcased so that word boundaries are unambiguous.
@@ -37,36 +57,37 @@ Naming
3757
- Alphanumeric characters only.
3858
- Example: `Isbn10`, not `Isbn-10` or `ISBN-10`.
3959

40-
#### Properties
60+
### Properties
4161

4262
- Camelcase with initial lowercase
4363
- Acronyms as above
4464

45-
#### All
65+
### All
4666

4767
- No non-standard abbreviations. E.g., `hasUoM` should be `hasUnitOfMeasure`.
4868

49-
### Labels
69+
Naming: Labels
70+
-----
5071

5172
The following conventions apply to `skos:prefLabel` but not `skos:altLabel`.
5273

53-
#### Classes
74+
### Classes
5475

5576
- Title case (see definition of title case below)
5677
- Normalized to natural language standards. E.g., hyphens inserted, acronyms in all caps, etc.
5778
- Examples: _AMA Guideline_, _ISBN-10_
5879

59-
#### Properties
80+
### Properties
6081

6182
- Lower case
6283
- Normalized to natural language standards. E.g., hyphens inserted, acronyms in all caps, proper nouns capitalized, etc.
6384
- Examples: _has unit of measure_, _has SSN_, _unit symbol Unicode_
6485

65-
#### gist Definition of Title Case
86+
### gist Definition of Title Case
6687

6788
The rules of title case are not universally standardized; standardization is only at the level of house styles and individual style guides. Most English style guides agree that the first and last words should always be capitalized, while articles, short prepositions, and some conjunctions should not be. Other rules about the capitalization vary.
6889

69-
gist style guide for title case:
90+
This style guide defines the rules for title case as follows:
7091

7192
- Capitalize:
7293
- First and last words
@@ -79,7 +100,12 @@ gist style guide for title case:
79100
- Acronyms in all caps (e.g., _SSN_, _ISBN_)
80101
- Capitalize everything else
81102

82-
### Annotations
103+
-----
104+
105+
Annotations
106+
-----
107+
108+
### Conventions
83109

84110
gist uses SKOS annotations rather than `rdfs:label` and `rdfs:comment`. The accepted annotations, intended use, and previous usage are shown in the following tables. Refer to the [SKOS ontology](http://www.w3.org/2004/02/skos/core) for formal definitions.
85111

@@ -117,10 +143,12 @@ Certain RDFS annotations are recommended where there is no SKOS equivalent.
117143
| `rdfs:label` | `skos:prefLabel` |
118144
| `rdfs:comment` | All other annotations, especially `skos:scopeNote` and `skos:example` |
119145

120-
#### Rationale
146+
### Rationale
121147

122148
SKOS annotations allow a more fine-grained approach to human-readable documentation. This change also aligns with emerging common practice.
123149

150+
-----
151+
124152
Documentation
125153
-----
126154

0 commit comments

Comments
 (0)