Skip to content

Commit 4fd926a

Browse files
committed
updated for codemeta v3.0
Ref: codemeta/codemeta#271 Ref: proycon/codemetapy#47
1 parent 4086edc commit 4fd926a

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,20 +87,20 @@ property multiple times to list all possible variants.
8787
## How are software types terms used with codemeta?
8888

8989
Codemeta, building upon schema.org, describes software metadata focused on the
90-
software's source code (`schema:SoftwareSourceCode`). We call the various
91-
artefacts that can be produced by the source code **target products** and use
92-
use the existing `schema:targetProduct` property to link the source code
93-
description to one or more target products (see discussion
90+
software's source code (`schema:SoftwareSourceCode`). We various artefacts that
91+
can be produced by the source code are linked to it using the `codemeta:isSourceCodeOf` property (see discussion
9492
[here](https://github.com/codemeta/codemeta/issues/267)). These target products
9593
take one of the types defines in our profile, or one of the existing ones
9694
already in schema.org.
9795

96+
**Note:** In Codemeta v2, we used the `schema:targetProduct` property for this because `codemeta:isSourceCodeOf` wasn't introduced yet before v3.
97+
9898
Example A (JSON-LD): An application named [WIDOCO](https://github.com/dgarijo/Widoco/) is both a command line application in Java (JAR), but also a library:
9999

100100
```json
101101
{
102102
"@context": [
103-
"https://raw.githubusercontent.com/codemeta/codemeta/2.0/codemeta.jsonld",
103+
"https://w3id.org/codemeta/v3.0",
104104
"https://raw.githubusercontent.com/schemaorg/schemaorg/main/data/releases/13.0/schemaorgcontext.jsonld",
105105
"https://w3id.org/software-types"
106106
],
@@ -109,7 +109,7 @@ Example A (JSON-LD): An application named [WIDOCO](https://github.com/dgarijo/Wi
109109
"version": "1.14.17",
110110
"codeRepository": "https://github.com/dgarijo/Widoco",
111111
...,
112-
"targetProduct": [
112+
"isSourceCodeOf": [
113113
{
114114
"type": "CommandLineApplication",
115115
"name": "WIDOCO",
@@ -130,15 +130,15 @@ Example B: A python package ([Chowlk](https://github.com/oeg-upm/Chowlk)) can be
130130
```json
131131
{
132132
"@context": [
133-
"https://raw.githubusercontent.com/codemeta/codemeta/2.0/codemeta.jsonld",
133+
"https://w3id.org/codemeta/v3.0",
134134
"https://raw.githubusercontent.com/schemaorg/schemaorg/main/data/releases/13.0/schemaorgcontext.jsonld",
135135
"https://w3id.org/software-types"
136136
],
137137
"@type": "SoftwareSourceCode",
138138
"name": "Chowlk",
139139
"codeRepository": "https://github.com/oeg-upm/Chowlk",
140140
...,
141-
"targetProduct": [
141+
"isSourceCodeOf": [
142142
{
143143
"type": "WebApplication",
144144
"executableName": "chowlk-webapp",
@@ -183,7 +183,7 @@ proposed extension as formulated
183183
[here](https://github.com/schemaorg/schemaorg/issues/1423). These are **not** new properties proposed in this profile.
184184

185185
The link between `SoftwareSourceCode` and subclasses of `SoftwareApplication`,
186-
`WebAPI`, `WebPage` or `WebSite` is established using the `targetProduct`
186+
`WebAPI`, `WebPage` or `WebSite` is established using the `isSourceCodeOf`
187187
property. There is also a reverse property for this called
188188
``codemeta:hasSourceCode`` (see discussion
189189
[here](https://github.com/codemeta/codemeta/pull/229)) that can be used in case of need.

0 commit comments

Comments
 (0)