summaryrefslogtreecommitdiff
path: root/topics/next-gen-databases/ontology.gmi
blob: 7e27f78dc2ba3b779523430a951fa57ef461d644 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Ontologies

Sticking to GN tables is a bad idea because it doesn't capture what "how" we want to define our data.  Second we are not using the freedom of RDF.

Here, we note down all lessons learnt while we continuously improve our ontologies.

### Resources
=> https://wrdrd.readthedocs.io/en/latest/consulting/knowledge-engineering.html Knowledge Engineering
=> https://www.w3.org/wiki/VocabularyMarket Vocabulary Market
=> https://www.w3.org/TR/prov-o/ PROV-O: The PROV Ontology
=> https://bioportal.bioontology.org/ontologies Browse Ontologies related to biology
=> https://www.dublincore.org/specifications/dublin-core/dcmi-terms/ DublinCore DCMI Metadata Terms
=> https://www.w3.org/TR/skos-primer/ skos primer
=> https://www.w3.org/TR/vocab-dcat-2/ Data Catalog Vocabulary (DCAT) Version 2
=> https://www.w3.org/TR/vocab-data-cube/ Data Cube Vocabulary
=> https://www.w3.org/TR/shacl/ Shapes Constraint Language (SHACL)

####  Learning
=> https://sparql.dev/ Learn Sparql
### rdfs:label

Consider this pattern when dumping data in rdf:

```
(set gnt:displayName (field Species MenuName))
```

Notice that we use a new term: "gnt:displayName".  This is unnecessary.   Since what we want is to use a human readable way of capturing that.  A better way would be:

```
(set rdfs:label (field Species MenuName))
```

This prevents us from having to "invent" our own terms all the time.


### rdfs:domain and rdfs:range

We use "rdfs:domain" and "rdfs:range" to "connect" a property to a class.  So:

```
gn:code rdfs:domain gnc:inbredSet
```

means that gnc:inbredSet has the predicate gn:code.   To represent the above using rdfs:range:

```
gnc:inbredSet rdfs:range gn:code
```

Read more here:

=> https://www.ida.liu.se/research/semanticweb/events/SemWebCourse2018/OWL_basics.pdf Ontology Engineering - The basics of OWL (PDF)