Skip to content

Commit

Permalink
Merge pull request #39 from CSBiology/arctrl
Browse files Browse the repository at this point in the history
Update ARCtrl dependency to 2
  • Loading branch information
omaus authored Sep 6, 2024
2 parents 20acdce + 6911e72 commit 9406117
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/OBO.NET/OBO.NET.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ARCtrl.ISA" Version="1.0.0-beta.7" />
<PackageReference Include="ARCtrl.Core" Version="2.0.1" />
<PackageReference Include="ControlledVocabulary" Version="1.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="[1.1.1]" PrivateAssets="All" />
<PackageReference Include="FSharpAux" Version="[2.0.0]" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="FSharp.Core" Version="7.0.401" />
<PackageReference Update="FSharp.Core" Version="8.0.301" />
</ItemGroup>

</Project>
6 changes: 3 additions & 3 deletions src/OBO.NET/OboOntology.fs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ open DBXref

open FSharpAux
open FSharpAux.Regex
open ARCtrl.ISA
open ARCtrl

open System
open System.IO
Expand Down Expand Up @@ -311,7 +311,7 @@ type OboOntology =
| Some oa ->
oa
| None ->
OntologyAnnotation.fromString(tan = xref.Name)
OntologyAnnotation(tan = xref.Name)
)
| None ->
[]
Expand Down Expand Up @@ -361,7 +361,7 @@ type OboOntology =
| Some oa ->
oa
| None ->
OntologyAnnotation.fromString(tan = isA)
OntologyAnnotation(tan = isA)
)
| None ->
[]
Expand Down
5 changes: 2 additions & 3 deletions src/OBO.NET/OboTerm.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ open TermSynonym

open System

open ARCtrl.ISA
open ARCtrl
open ControlledVocabulary
open FSharpAux

Expand Down Expand Up @@ -517,8 +517,7 @@ type OboTerm =

/// Translates an OBO `term` into an ISADotNet `OntologyAnnotation`.
static member toOntologyAnnotation (term : OboTerm) =
OntologyAnnotation.fromString(term.Name,tan = term.Id)
|> fun o -> {o with TermSourceREF = o.TANInfo |> Option.map (fun t -> t.IDSpace)}
OntologyAnnotation(term.Name,tan = term.Id)

/// Translates an ISADotNet `OntologyAnnotation` into an OBO `term`.
static member ofOntologyAnnotation (term : OntologyAnnotation) =
Expand Down

0 comments on commit 9406117

Please sign in to comment.