-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #426 from nfdi4plants/ro-crate-data-model
Ro crate data model
- Loading branch information
Showing
35 changed files
with
1,633 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,4 @@ | |
|
||
set PYTHONIOENCODING=utf-8 | ||
dotnet tool restore | ||
cls | ||
dotnet run --project ./build/build.fsproj %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="ROCrateObject.fs" /> | ||
<Compile Include="ISAProfile\Dataset.fs" /> | ||
<Compile Include="ISAProfile\Investigation.fs" /> | ||
<Compile Include="ISAProfile\Study.fs" /> | ||
<Compile Include="ISAProfile\Assay.fs" /> | ||
<Compile Include="ISAProfile\LabProcess.fs" /> | ||
<Compile Include="ISAProfile\LabProtocol.fs" /> | ||
<Compile Include="ISAProfile\Sample.fs" /> | ||
<Compile Include="ISAProfile\Data.fs" /> | ||
<Compile Include="ISAProfile\PropertyValue.fs" /> | ||
<Compile Include="ISAProfile\Person.fs" /> | ||
<Compile Include="ISAProfile\ScholarlyArticle.fs" /> | ||
<None Include="playground.fsx" /> | ||
<None Include="../../build/logo.png" Pack="true" PackagePath="\" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="DynamicObj" Version="3.1.0" /> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<Authors>Kevin Schneider, nfdi4plants, DataPLANT OSS contributors</Authors> | ||
<Description>A data model of the ARC concept via it's RO Crate profile</Description> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<PackageIcon>logo.png</PackageIcon> | ||
<PackageTags>ARC F# FSharp dotnet .Net bioinformatics biology fable-library datascience dataplant nfdi metadata</PackageTags> | ||
<PackageProjectUrl>https://github.com/nfdi4plants/ARCtrl/tree/main/src/CWL</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/nfdi4plants/ARCtrl</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
namespace ARCtrl.ROCrate | ||
|
||
open DynamicObj | ||
open Fable.Core | ||
|
||
/// | ||
[<AttachMembers>] | ||
type Assay( | ||
id, | ||
identifier, | ||
?about, | ||
?comment, | ||
?creator, | ||
?hasPart, | ||
?measurementMethod, | ||
?measurementTechnique, | ||
?url, | ||
?variableMeasured | ||
) as this = | ||
inherit Dataset(id, "Assay") | ||
do | ||
DynObj.setValue this (nameof identifier) identifier | ||
|
||
DynObj.setValueOpt this (nameof measurementMethod) measurementMethod | ||
DynObj.setValueOpt this (nameof measurementTechnique) measurementTechnique | ||
DynObj.setValueOpt this (nameof variableMeasured) variableMeasured | ||
DynObj.setValueOpt this (nameof about) about | ||
DynObj.setValueOpt this (nameof comment) comment | ||
DynObj.setValueOpt this (nameof creator) creator | ||
DynObj.setValueOpt this (nameof hasPart) hasPart | ||
DynObj.setValueOpt this (nameof url) url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
namespace ARCtrl.ROCrate | ||
|
||
open DynamicObj | ||
open Fable.Core | ||
|
||
/// | ||
[<AttachMembers>] | ||
type Data( | ||
id, | ||
name, | ||
?additionalType, | ||
?comment, | ||
?encodingFormat, | ||
?disambiguatingDescription | ||
) as this = | ||
inherit ROCrateObject(id = id, schemaType = "schema.org/MediaObject", ?additionalType = additionalType) | ||
do | ||
DynObj.setValue this (nameof name) name | ||
|
||
DynObj.setValueOpt this (nameof comment) comment | ||
DynObj.setValueOpt this (nameof encodingFormat) encodingFormat | ||
DynObj.setValueOpt this (nameof disambiguatingDescription) disambiguatingDescription | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace ARCtrl.ROCrate | ||
|
||
open DynamicObj | ||
open Fable.Core | ||
|
||
/// | ||
[<AttachMembers>] | ||
type Dataset (id: string, ?additionalType: string) = | ||
inherit ROCrateObject(id = id, schemaType = "schema.org/Dataset", ?additionalType = additionalType) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
namespace ARCtrl.ROCrate | ||
|
||
open DynamicObj | ||
open Fable.Core | ||
|
||
/// | ||
[<AttachMembers>] | ||
type Investigation( | ||
id, | ||
identifier, | ||
?citation, | ||
?comment, | ||
?creator, | ||
?dateCreated, | ||
?dateModified, | ||
?datePublished, | ||
?hasPart, | ||
?headline, | ||
?mentions, | ||
?url, | ||
?description | ||
) as this = | ||
inherit Dataset(id, "Investigation") | ||
do | ||
DynObj.setValue this (nameof identifier) identifier | ||
|
||
DynObj.setValueOpt this (nameof citation) citation | ||
DynObj.setValueOpt this (nameof comment) comment | ||
DynObj.setValueOpt this (nameof creator) creator | ||
DynObj.setValueOpt this (nameof dateCreated) dateCreated | ||
DynObj.setValueOpt this (nameof dateModified) dateModified | ||
DynObj.setValueOpt this (nameof datePublished) datePublished | ||
DynObj.setValueOpt this (nameof hasPart) hasPart | ||
DynObj.setValueOpt this (nameof headline) headline | ||
DynObj.setValueOpt this (nameof mentions) mentions | ||
DynObj.setValueOpt this (nameof url) url | ||
DynObj.setValueOpt this (nameof description) description |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
namespace ARCtrl.ROCrate | ||
|
||
open DynamicObj | ||
open Fable.Core | ||
|
||
/// | ||
[<AttachMembers>] | ||
type LabProcess( | ||
id, | ||
name, | ||
agent, | ||
object, | ||
result, | ||
?additionalType, | ||
?executesLabProtocol, | ||
?parameterValue, | ||
?endTime, | ||
?disambiguatingDescription | ||
) as this = | ||
inherit ROCrateObject(id = id, schemaType = "bioschemas.org/LabProcess", ?additionalType = additionalType) | ||
do | ||
DynObj.setValue this (nameof name) name | ||
DynObj.setValue this (nameof agent) agent | ||
DynObj.setValue this (nameof object) object | ||
DynObj.setValue this (nameof result) result | ||
|
||
DynObj.setValueOpt this (nameof executesLabProtocol) executesLabProtocol | ||
DynObj.setValueOpt this (nameof parameterValue) parameterValue | ||
DynObj.setValueOpt this (nameof endTime) endTime | ||
DynObj.setValueOpt this (nameof disambiguatingDescription) disambiguatingDescription |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
namespace ARCtrl.ROCrate | ||
|
||
open DynamicObj | ||
open Fable.Core | ||
|
||
/// | ||
[<AttachMembers>] | ||
type LabProtocol( | ||
id, | ||
?additionalType, | ||
?name, | ||
?intendedUse, | ||
?description, | ||
?url, | ||
?comment, | ||
?version, | ||
?labEquipment, | ||
?reagent, | ||
?computationalTool | ||
) as this = | ||
inherit ROCrateObject(id = id, schemaType = "bioschemas.org/LabProtocol", ?additionalType = additionalType) | ||
do | ||
DynObj.setValueOpt this (nameof name) name | ||
DynObj.setValueOpt this (nameof intendedUse) intendedUse | ||
DynObj.setValueOpt this (nameof description) description | ||
DynObj.setValueOpt this (nameof url) url | ||
DynObj.setValueOpt this (nameof comment) comment | ||
DynObj.setValueOpt this (nameof version) version | ||
DynObj.setValueOpt this (nameof labEquipment) labEquipment | ||
DynObj.setValueOpt this (nameof reagent) reagent | ||
DynObj.setValueOpt this (nameof computationalTool) computationalTool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
namespace ARCtrl.ROCrate | ||
|
||
open DynamicObj | ||
open Fable.Core | ||
|
||
/// | ||
[<AttachMembers>] | ||
type Person( | ||
id, | ||
givenName, | ||
?additionalType, | ||
?familyName, | ||
?email, | ||
?identifier, | ||
?affiliation, | ||
?jobTitle, | ||
?additionalName, | ||
?address, | ||
?telephone, | ||
?faxNumber, | ||
?disambiguatingDescription | ||
) as this= | ||
inherit ROCrateObject(id = id, schemaType = "schema.org/Person", ?additionalType = additionalType) | ||
do | ||
|
||
DynObj.setValue this (nameof givenName) givenName | ||
|
||
DynObj.setValueOpt this (nameof familyName) familyName | ||
DynObj.setValueOpt this (nameof email) email | ||
DynObj.setValueOpt this (nameof identifier) identifier | ||
DynObj.setValueOpt this (nameof affiliation) affiliation | ||
DynObj.setValueOpt this (nameof jobTitle) jobTitle | ||
DynObj.setValueOpt this (nameof additionalName) additionalName | ||
DynObj.setValueOpt this (nameof address) address | ||
DynObj.setValueOpt this (nameof telephone) telephone | ||
DynObj.setValueOpt this (nameof faxNumber) faxNumber | ||
DynObj.setValueOpt this (nameof disambiguatingDescription) disambiguatingDescription |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
namespace ARCtrl.ROCrate | ||
|
||
open DynamicObj | ||
open Fable.Core | ||
|
||
/// | ||
[<AttachMembers>] | ||
type PropertyValue( | ||
id, | ||
name, | ||
value, | ||
?propertyID, | ||
?unitCode, | ||
?unitText, | ||
?valueReference, | ||
?additionalType | ||
) as this = | ||
inherit ROCrateObject(id = id, schemaType = "schema.org/PropertyValue", ?additionalType = additionalType) | ||
do | ||
|
||
DynObj.setValue this (nameof name) name | ||
DynObj.setValue this (nameof value) value | ||
|
||
DynObj.setValueOpt this (nameof propertyID) propertyID | ||
DynObj.setValueOpt this (nameof unitCode) unitCode | ||
DynObj.setValueOpt this (nameof unitText) unitText | ||
DynObj.setValueOpt this (nameof valueReference) valueReference |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace ARCtrl.ROCrate | ||
|
||
open DynamicObj | ||
open Fable.Core | ||
|
||
/// | ||
[<AttachMembers>] | ||
type Sample( | ||
id, | ||
name, | ||
?additionalType, | ||
?additionalProperty, | ||
?derivesFrom | ||
) as this = | ||
inherit ROCrateObject(id = id, schemaType = "bioschemas.org/Sample", ?additionalType = additionalType) | ||
do | ||
DynObj.setValue this (nameof name) name | ||
|
||
DynObj.setValueOpt this (nameof additionalProperty) additionalProperty | ||
DynObj.setValueOpt this (nameof derivesFrom) derivesFrom |
Oops, something went wrong.