forked from codemeta/codemeta.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathterms.Rmd
More file actions
53 lines (38 loc) · 2.04 KB
/
terms.Rmd
File metadata and controls
53 lines (38 loc) · 2.04 KB
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
---
title: Codemeta Terms
---
```{r echo=FALSE, include = FALSE, message = FALSE}
knitr::opts_chunk$set(echo=FALSE, message = FALSE, warning = FALSE)
library("readr")
library("dplyr")
```
* Permalink: <https://w3id.org/codemeta/3.0>
* CodeMeta version: 3.0
## Terms from Schema.org
Recognized properties for CodeMeta `SoftwareSourceCode` and `SoftwareApplication` includes the following terms from <https://schema.org>. These terms are part of the CodeMeta specification and can be used without any prefix.
```{r}
crosswalk <- "https://github.com/codemeta/codemeta/raw/master/crosswalk.csv"
cw <- read_csv(crosswalk)
cw %>%
filter(grepl("schema:(SoftwareSourceCode|SoftwareApplication|CreativeWork|Thing)", `Parent Type`)) %>%
select(Property, Type, Description) %>%
knitr::kable("html", table.attr="class=\"table table-striped\"")
```
These terms are all recognized properties of <https://schema.org/SoftwareSourceCode> or <https://schema.org/SoftwareApplication> Types. Note that while most properties take basic data types as values (`Text`, `URL`), several take other node types, such as `Person` or `Organization`. Recommended fields for these node types in CodeMeta documents are given below.
```{r}
cw %>%
filter(grepl("schema:(Person|Thing)", `Parent Type`)) %>%
select(Property, Type, Description) %>%
knitr::kable("html", table.attr="class=\"table table-striped\"")
```
## Codemeta terms
The CodeMeta project also introduces the following additional properties, which lack clear equivalents in <https://schema.org> but can play an important role in software metadata records covered by the CodeMeta crosswalk.
* Namespace: <https://codemeta.github.io/terms/>
- **Warning**: This namespace will change to be w3id-based for CodeMeta 4.0
```{r}
cw %>%
filter(grepl("codemeta:", `Parent Type`)) %>%
select(Property, Type, Description) %>%
knitr::kable("html", table.attr="class=\"table table-striped\"")
```
Please suggest additional terms or adjustments to this representation in the [codemeta issues](https://github.com/codemeta/codemeta/issues)