Skip to content

Commit

Permalink
corrected kif files; loads on sigma without parsing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
NuNetIO committed Jun 1, 2021
1 parent d32b3a4 commit b61bb07
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
9 changes: 5 additions & 4 deletions ontology/FakeNewsScore.kif
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ and calculates the overall probability that the provided content contains fake n
(and
(subclass ?fakeNewsScoreOutput JSONDef)
(hasField ?fakeNewsScoreOutput url URL)
(...)
; all fields of actual data structure as approximately indicated here https://gitlab.com/nunet/fake-news-detection/fake_news_score/-/issues/22
; actual data structure is determined by the code
(...)
)
(instance ?fnsBinaryClassifierOutput fnsBinaryClassifierOutputType)
)

; (...)
; all fields of actual data structure as approximately indicated here https://gitlab.com/nunet/fake-news-detection/fake_news_score/-/issues/22
; actual data structure is determined by the code
; (...)

; ideally we should include here the definition of RealizedFunction, as described in Idris part of the AI-DSL
5 changes: 3 additions & 2 deletions ontology/NuNet.kif
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
(=>
(and
(hasMetadata ?SNetAIServiceMetadata ?SNetAIService)
(hasField ?SNetAIServiceMetadata RequiredComputingResources)
; includes many other prerequisites and special protobuf definitions
(hasField ?RequiredComputingResources ?SNetAIServiceMetadata)
)
(instance ?SNetAIService NuNetEnabledSNetAIService)
)

; includes many other prerequisites and special protobuf definitions

(subclass NuNetEnabledComputer Computer)
(documentation NuNetEnabledComputer EnglishLanguage "A Computer which was onboarded to NuNet platfrom and complies to its requirements.")

Expand Down
1 change: 1 addition & 0 deletions ontology/SingularityNet.kif
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
; this is subject of the future work

(subclass JSONDef DataType)
(subclass ProtoBufDef DataType)
(subclass URL DataType)
(subclass Text DataType)
(subclass Boolean DataType)
8 changes: 2 additions & 6 deletions ontology/fnsBinaryClassifier.kif
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,11 @@
(instance fnsBinaryClassifierOutputType DataType)

(=>
(and
(hasField ?fnsBinaryClassifierInput mainText Text)
)
(hasField ?fnsBinaryClassifierInput mainText Text)
(instance ?fnsBinaryClassifierInput fnsBinaryClassifierInputType)
)

(=>
(and
(hasField ?fnsBinaryClassifierOutput fakeOrNot Boolean)
)
(hasField ?fnsBinaryClassifierOutput fakeOrNot Boolean)
(instance ?fnsBinaryClassifierOutput fnsBinaryClassifierOutputType)
)
6 changes: 3 additions & 3 deletions ontology/uclnlp.kif
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(instance uclnlp SNetAIService)
(instance uclnlp NuNetEnabledSNetAIService)
(documentation uclnlp EnglishLanguage "Forked and adapted component of stance detection algorithm by UCL Machine Reading group.")

(hasInput uclnlp uclnlpInput)
Expand All @@ -9,8 +9,8 @@

(=>
(and
(hasField ?uclnlpInput titleText AlphaNumericString)
(hasField ?uclnlpInput mainText AlphaNumericString)
(hasField ?uclnlpInput titleText Text)
(hasField ?uclnlpInput mainText Text)
)
(instance ?uclnlpInput uclnlpInputType)
)
Expand Down

0 comments on commit b61bb07

Please sign in to comment.