Skip to content

Commit fba9318

Browse files
committed
Adapted example A (Widoco) #8 #9
* version should typically be a separate property, not part of the name. I also moved it to the source code level, as the entire code base corresponds to that version (ideally properly git tagged of course). It may be replicated at the targetProduct level, but that'd be a bit redundant. * I added an executableName for both the command line tool and the library. For the former the version is part of the name because that's simply how your software ships if I interpreted your README correctly. * I didn't change the runtimePlatform (Linux) since I don't know your software but this might be too narrowly defined for this particular java software?
1 parent 005de7a commit fba9318

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ description to one or more target products (see discussion
9595
take one of the types defines in our profile, or one of the existing ones
9696
already in schema.org.
9797

98-
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. In this case, the application does not have an executable name, as it is run from the command line as a JAR (`java-jar ...`)
98+
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
{
@@ -106,17 +106,20 @@ Example A (JSON-LD): An application named [WIDOCO](https://github.com/dgarijo/Wi
106106
],
107107
"@type": "SoftwareSourceCode",
108108
"name": "WIDOCO",
109+
"version": "1.14.17",
109110
"codeRepository": "https://github.com/dgarijo/Widoco",
110111
...,
111112
"targetProduct": [
112113
{
113114
"type": "CommandLineApplication",
114-
"name": "WIDOCO 1.14.17",
115+
"name": "WIDOCO",
116+
"executableName": "Widico-1.14.17-jar-with-dependencies.jar",
115117
"runtimePlatform": "Linux"
116118
},
117119
{
118120
"type": "SoftwareLibrary",
119-
"name": "WIDOCO 1.14.17",
121+
"executableName": "es.oeg.Widico",
122+
"name": "WIDOCO",
120123
"runtimePlatform": "Linux"
121124
},
122125
]

0 commit comments

Comments
 (0)