Skip to content

Commit

Permalink
remove deprecated ARCtrl.NET project and rename to ARCtrl.Querymodel
Browse files Browse the repository at this point in the history
  • Loading branch information
HLWeil committed Dec 20, 2024
1 parent 5b3147e commit 240e99b
Show file tree
Hide file tree
Showing 62 changed files with 24 additions and 2,010 deletions.
28 changes: 0 additions & 28 deletions ARCtrl.NET.sln → ARCtrl.Querymodel.sln
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
RELEASE_NOTES.md = RELEASE_NOTES.md
EndProjectSection
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "ARCtrl.NET", "src\ARCtrl.NET\ARCtrl.NET.fsproj", "{A6324D54-1D9A-4EE8-BD57-FEB59132821B}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "ARCtrl.NET.Tests", "tests\ARCtrl.NET.Tests\ARCtrl.NET.Tests.fsproj", "{74227D27-9ED9-45CC-BF80-1569C80719F7}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "ARCtrl.QueryModel", "src\ARCtrl.QueryModel\ARCtrl.QueryModel.fsproj", "{1927F72B-180E-49C7-A189-96176E6067D3}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "ARCtrl.Querymodel.Tests", "tests\ARCtrl.Querymodel.Tests\ARCtrl.Querymodel.Tests.fsproj", "{3907F71F-1F36-4164-A53A-68DBCB5DC22E}"
Expand All @@ -45,30 +41,6 @@ Global
{E7F453CD-BCCA-42EF-96A2-C74B9A09A593}.Release|x64.Build.0 = Release|Any CPU
{E7F453CD-BCCA-42EF-96A2-C74B9A09A593}.Release|x86.ActiveCfg = Release|Any CPU
{E7F453CD-BCCA-42EF-96A2-C74B9A09A593}.Release|x86.Build.0 = Release|Any CPU
{A6324D54-1D9A-4EE8-BD57-FEB59132821B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A6324D54-1D9A-4EE8-BD57-FEB59132821B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A6324D54-1D9A-4EE8-BD57-FEB59132821B}.Debug|x64.ActiveCfg = Debug|Any CPU
{A6324D54-1D9A-4EE8-BD57-FEB59132821B}.Debug|x64.Build.0 = Debug|Any CPU
{A6324D54-1D9A-4EE8-BD57-FEB59132821B}.Debug|x86.ActiveCfg = Debug|Any CPU
{A6324D54-1D9A-4EE8-BD57-FEB59132821B}.Debug|x86.Build.0 = Debug|Any CPU
{A6324D54-1D9A-4EE8-BD57-FEB59132821B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A6324D54-1D9A-4EE8-BD57-FEB59132821B}.Release|Any CPU.Build.0 = Release|Any CPU
{A6324D54-1D9A-4EE8-BD57-FEB59132821B}.Release|x64.ActiveCfg = Release|Any CPU
{A6324D54-1D9A-4EE8-BD57-FEB59132821B}.Release|x64.Build.0 = Release|Any CPU
{A6324D54-1D9A-4EE8-BD57-FEB59132821B}.Release|x86.ActiveCfg = Release|Any CPU
{A6324D54-1D9A-4EE8-BD57-FEB59132821B}.Release|x86.Build.0 = Release|Any CPU
{74227D27-9ED9-45CC-BF80-1569C80719F7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{74227D27-9ED9-45CC-BF80-1569C80719F7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{74227D27-9ED9-45CC-BF80-1569C80719F7}.Debug|x64.ActiveCfg = Debug|Any CPU
{74227D27-9ED9-45CC-BF80-1569C80719F7}.Debug|x64.Build.0 = Debug|Any CPU
{74227D27-9ED9-45CC-BF80-1569C80719F7}.Debug|x86.ActiveCfg = Debug|Any CPU
{74227D27-9ED9-45CC-BF80-1569C80719F7}.Debug|x86.Build.0 = Debug|Any CPU
{74227D27-9ED9-45CC-BF80-1569C80719F7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{74227D27-9ED9-45CC-BF80-1569C80719F7}.Release|Any CPU.Build.0 = Release|Any CPU
{74227D27-9ED9-45CC-BF80-1569C80719F7}.Release|x64.ActiveCfg = Release|Any CPU
{74227D27-9ED9-45CC-BF80-1569C80719F7}.Release|x64.Build.0 = Release|Any CPU
{74227D27-9ED9-45CC-BF80-1569C80719F7}.Release|x86.ActiveCfg = Release|Any CPU
{74227D27-9ED9-45CC-BF80-1569C80719F7}.Release|x86.Build.0 = Release|Any CPU
{1927F72B-180E-49C7-A189-96176E6067D3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1927F72B-180E-49C7-A189-96176E6067D3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1927F72B-180E-49C7-A189-96176E6067D3}.Debug|x64.ActiveCfg = Debug|Any CPU
Expand Down
43 changes: 18 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,38 @@
# ARCtrl.NET
# ARCtrl.Querymodel

<a href="https://www.nuget.org/packages/ARCtrl/"><img alt="Nuget" src="https://img.shields.io/nuget/v/ARCtrl?logo=nuget&color=%234fb3d9"></a>
> [!NOTE]
> Filesystem Access has been implemented in ARCtrl since v2.3.0, even transpilable to JS and Python. ARCtrl.NET is therefore deprecated and this repository hosts only ARCtrl.Querymodel.
This library functions as an IO wrapper for the [ARCtrl](https://github.com/nfdi4plants/ARCtrl) library in .NET.

<a href="https://www.nuget.org/packages/ARCtrl.Querymodel/"><img alt="Nuget" src="https://img.shields.io/nuget/v/ARCtrl.Querymodel?logo=nuget&color=%234fb3d9"></a>

Adds querying functionality to the core [ARCtrl](https://github.com/nfdi4plants/ARCtrl) package in .NET.

The documentation for the actual functions for manipulating the ARC datamodel can be found [here](https://github.com/nfdi4plants/ARCtrl/tree/main/docs/scripts_fsharp).

## Usage

```fsharp
#r "nuget: ARCtrl.NET"
open ARCtrl.NET
open ARCtrl
open ARCtrl.QueryModel
open ARCtrl.ISA
let i = ArcInvestigation("Dummy Investigation")
let arcPath = ""
let arc = ARC.load(arcPath)
let isa = arc.ISA.Value
isa.InitStudy("MyStudy")
i.ArcTables.Values().WithName("Dummy Header").First.ValueText
arc.Write(arcPath)
i.GetAssay("Dummy Assay").LastSamples
```

## Development

`./build.cmd runtests`

## ARCtrl.Querymodel
#### Requirements

```fsharp
open ARCtrl
open ARCtrl.QueryModel
open ARCtrl.ISA
- [.NET SDK](https://dotnet.microsoft.com/en-us/download)
- verify with `dotnet --version` (Tested with 7.0.306)

let i = ArcInvestigation("Dummy Investigation")
#### Local Setup

i.ArcTables.Values().WithName("Dummy Header").First.ValueText
- Setup dotnet tools `dotnet tool restore`

i.GetAssay("Dummy Assay").LastSamples
```
- Verify correct setup with `./build.cmd runtests`
2 changes: 1 addition & 1 deletion build/ProjectInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let project = "ARCtrl.NET"

let testProjects =
[
"tests/ARCtrl.NET.Tests/ARCtrl.NET.Tests.fsproj"
//"tests/ARCtrl.NET.Tests/ARCtrl.NET.Tests.fsproj"
"tests/ARCtrl.Querymodel.Tests/ARCtrl.Querymodel.Tests.fsproj"
]

Expand Down
46 changes: 0 additions & 46 deletions src/ARCtrl.NET/ARCtrl.NET.fsproj

This file was deleted.

82 changes: 0 additions & 82 deletions src/ARCtrl.NET/Arc.fs

This file was deleted.

86 changes: 0 additions & 86 deletions src/ARCtrl.NET/Assay.fs

This file was deleted.

49 changes: 0 additions & 49 deletions src/ARCtrl.NET/Contract.fs

This file was deleted.

Loading

0 comments on commit 240e99b

Please sign in to comment.