Skip to content

Commit fc82a41

Browse files
authored
ENG-1577 Updated ttl file with fields per evidence (#919)
ALSO simplified oppose/supports ALSO Overhauled to align with PROV-O, solving ENG-1578
1 parent 0691aaa commit fc82a41

File tree

1 file changed

+58
-45
lines changed

1 file changed

+58
-45
lines changed

apps/website/public/schema/dg_core.ttl

Lines changed: 58 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
@prefix prov: <http://www.w3.org/ns/prov#> .
99
@prefix dgb: <https://discoursegraphs.com/schema/dg_base#> .
1010
@prefix dg: <https://discoursegraphs.com/schema/dg_core#> .
11+
@prefix schema: <http://schema.org/> .
1112

1213
dg:Question a dgb:NodeSchema;
1314
rdfs:label "Question"@en;
@@ -19,54 +20,77 @@ dg:Claim a dgb:NodeSchema;
1920

2021
dg:Evidence a dgb:NodeSchema;
2122
rdfs:label "Evidence"@en;
22-
rdfs:comment "A specific empirical observation from a particular application of a research method"@en.
23-
24-
dg:Source a dgb:NodeSchema;
25-
rdfs:label "Source"@en;
26-
rdfs:comment "Some research source that reports/generates evidence, like an experiment/study, book, conference paper, or journal article"@en.
27-
28-
dg:opposesCE a dgb:RelationDef;
29-
rdfs:label "Opposes"@en;
30-
rdfs:range dg:Claim;
23+
rdfs:comment "A specific empirical observation from a particular application of a research method"@en;
24+
owl:subClassOf [rdf:type owl:Restriction ; owl:onProperty dg:observationStatement ; owl:cardinality 1],
25+
[rdf:type owl:Restriction ; owl:onProperty dg:observationBase ; owl:cardinality 1].
26+
# Ideally also dg:observationOriginActivity, but maybe not a hard constraint.
27+
28+
dg:describesActivity a dgb:RelationDef;
29+
rdfs:label "Describes activity"@en;
30+
rdfs:subPropertyOf dc:subject;
31+
rdfs:domain schema:CreativeWork;
32+
rdfs:range prov:Activity.
33+
34+
dg:SourceDocument a dgb:NodeSchema;
35+
rdfs:label "Source document"@en;
36+
rdfs:comment "Some research source document that reports/generates evidence, like a book, conference paper, or journal article"@en;
37+
owl:subClassOf schema:CreativeWork, [rdf:type owl:Restriction ; owl:onProperty dg:describesActivity ; owl:minCardinality 1].
38+
39+
dg:observationStatement a dgb:RelationDef;
40+
rdfs:label "Observation statement"@en;
41+
rdfs:domain dg:Evidence;
42+
rdfs:range dg:Claim.
43+
44+
dg:observationOriginActivity a dgb:RelationDef;
45+
rdfs:label "Observation origin process"@en;
46+
rdfs:comment "An experiment or study at the origin of the data on which the observation is based"@en;
47+
rdfs:domain dg:Evidence;
48+
rdfs:range prov:Activity.
49+
# I would like to add:
50+
# owl:propertyChainAxiom (dg:sourceDocument dg:describesActivity).
51+
# But it is not strictly accurate; the document may describe many activities
52+
# HOWEVER it is true that, if sourceDocument is defined, the observationOriginActivity should should follow one of these chains.
53+
54+
dg:observationBase a dgb:RelationDef;
55+
rdfs:label "Observation base"@en;
56+
rdfs:comment "The data on which the observation is based"@en;
57+
rdfs:range prov:Entity;
58+
# That range is very, very provisional. could also involve schema:DigitalDocument , schema:Dataset
3159
rdfs:domain dg:Evidence.
60+
# The Entity should be prov:wasGeneratedBy the Activity that is either the Source, or one subject of the Source.
61+
# I would like to add:
62+
# owl:propertyChainAxiom (dg:observationOriginActivity prov:generated).
63+
# But it is not strictly accurate; the activity may generate many entities.
64+
# HOWEVER it is true that the observationBase should follow one of these chains, which should exist.
3265

33-
dg:opposedByEC a dgb:RelationDef;
34-
rdfs:label "Opposed by"@en;
35-
owl:inverseOf dg:opposesCE;
36-
rdfs:range dg:Evidence;
37-
rdfs:domain dg:Claim.
66+
dg:sourceDocument a dgb:RelationDef;
67+
rdfs:label "Source document"@en;
68+
rdfs:comment "A document that described the activity which led to the data on which the observation is based"@en;
69+
rdfs:domain dg:Evidence;
70+
rdfs:range dg:SourceDocument.
3871

39-
dg:supportsCE a dgb:RelationDef;
40-
rdfs:label "Supports"@en;
41-
rdfs:range dg:Claim;
42-
rdfs:domain dg:Evidence.
72+
dg:ClaimOrEvidence a owl:Class; owl:unionOf (dg:Evidence dg:Claim).
4373

44-
dg:supportedByEC a dgb:RelationDef;
45-
rdfs:label "Supported by"@en;
46-
owl:inverseOf dg:supportsCE;
47-
rdfs:range dg:Evidence;
48-
rdfs:domain dg:Claim.
49-
50-
dg:opposesCC a dgb:RelationDef;
74+
dg:opposes a dgb:RelationDef;
5175
rdfs:label "Opposes"@en;
5276
rdfs:range dg:Claim;
53-
rdfs:domain dg:Claim.
77+
rdfs:domain dg:ClaimOrEvidence.
5478

55-
dg:opposedByCC a dgb:RelationDef;
79+
dg:opposedBy a dgb:RelationDef;
5680
rdfs:label "Opposed by"@en;
57-
owl:inverseOf dg:opposesCC;
58-
rdfs:range dg:Claim;
81+
owl:inverseOf dg:opposes;
82+
rdfs:range dg:ClaimOrEvidence;
5983
rdfs:domain dg:Claim.
6084

61-
dg:supportsCC a dgb:RelationDef;
85+
dg:supports a dgb:RelationDef;
6286
rdfs:label "Supports"@en;
6387
rdfs:range dg:Claim;
64-
rdfs:domain dg:Claim.
88+
rdfs:domain dg:ClaimOrEvidence.
6589

66-
dg:supportedByCC a dgb:RelationDef;
90+
dg:supportedBy a dgb:RelationDef;
6791
rdfs:label "Supported by"@en;
68-
owl:inverseOf dg:supportsCC;
69-
rdfs:range dg:Claim;
92+
owl:inverseOf dg:supports;
93+
rdfs:range dg:ClaimOrEvidence;
7094
rdfs:domain dg:Claim.
7195

7296
dg:addresses a dgb:RelationDef;
@@ -79,14 +103,3 @@ dg:addressedBy a dgb:RelationDef;
79103
owl:inverseOf dg:addresses;
80104
rdfs:range dg:Claim;
81105
rdfs:domain dg:Question.
82-
83-
dg:curatedTo a dgb:RelationDef;
84-
rdfs:label "Curated to"@en;
85-
rdfs:range dg:Source;
86-
rdfs:domain dg:Evidence.
87-
88-
dg:curatedFrom a dgb:RelationDef;
89-
owl:inverseOf dg:curatedTo;
90-
rdfs:label "Curated from"@en;
91-
rdfs:range dg:Evidence;
92-
rdfs:domain dg:Source.

0 commit comments

Comments
 (0)