Skip to content

Commit

Permalink
~ change semantic actions to a list
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Prud'hommeaux committed Sep 20, 2015
1 parent 513f128 commit 24103fd
Show file tree
Hide file tree
Showing 16 changed files with 77 additions and 67 deletions.
4 changes: 3 additions & 1 deletion parsedSchemas/1dotCode1.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"type": "tripleConstraint",
"predicate": "http://a.example/p1",
"value": { "type": "valueClass" },
"semAct": { "http://a.example/semAct1": " code1 " }
"semActs": [
{ "name": "http://a.example/semAct1", "contents": " code1 " }
]
}
}
}
Expand Down
9 changes: 5 additions & 4 deletions parsedSchemas/1dotCode3.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
"type": "tripleConstraint",
"predicate": "http://a.example/p1",
"value": { "type": "valueClass" },
"semAct": { "http://a.example/semAct1": " code1 ",
"http://a.example/semAct2": " code2 ",
"http://a.example/semAct3": " code3 "
}
"semActs": [
{ "name": "http://a.example/semAct1", "contents": " code1 " },
{ "name": "http://a.example/semAct2", "contents": " code2 " },
{ "name": "http://a.example/semAct3", "contents": " code3 " }
]
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion parsedSchemas/1dotCodeWithEscapes1.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"type": "tripleConstraint",
"predicate": "http://a.example/p1",
"value": { "type": "valueClass" },
"semAct": { "http://a.example/semAct1": "%{\\%};" }
"semActs": [
{ "name": "http://a.example/semAct1", "contents": "%{\\%};" }
]
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion parsedSchemas/1dotShapeCode1.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"predicate": "http://a.example/p1",
"value": { "type": "valueClass" }
},
"semAct": { "http://a.example/semAct1": " code1 " }
"semActs": [
{ "name": "http://a.example/semAct1", "contents": " code1 " }
]
}
}
}
4 changes: 3 additions & 1 deletion parsedSchemas/1dotUnlabeledCode1.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"type": "tripleConstraint",
"predicate": "http://a.example/p1",
"value": { "type": "valueClass" },
"semAct": { "": " code1 " }
"semActs": [
{ "name": "", "contents": " code1 " }
]
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion parsedSchemas/1dotVirtualShapeCode1.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"predicate": "http://a.example/p1",
"value": { "type": "valueClass" }
},
"semAct": { "http://a.example/semAct1": " code1 " }
"semActs": [
{ "name": "http://a.example/semAct1", "contents": " code1 " }
]
}
}
}
4 changes: 3 additions & 1 deletion parsedSchemas/1inversedotCode1.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"inverse": true,
"predicate": "http://a.example/p1",
"value": { "type": "valueClass" },
"semAct": { "http://a.example/semAct1": " code1 " }
"semActs": [
{ "name": "http://a.example/semAct1", "contents": " code1 " }
]
}
}
}
Expand Down
45 changes: 20 additions & 25 deletions parsedSchemas/_all.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
"xsd":"http://www.w3.org/2001/XMLSchema#",
"":"http://all.example/"
},
"startAct":{
"http://all.example/act1":" START1 ",
"http://all.example/act2":" START2 "
},
"startActs": [
{ "name": "http://all.example/act1", "contents": " START1 "},
{ "name": "http://all.example/act2", "contents": " START2 "}
],
"start":"http://all.example/S3",
"shapes":{
"http://all.example/S1":{
Expand Down Expand Up @@ -228,9 +228,9 @@
"type":"valueClass",
"reference":"_:b0"
},
"min":2,"max":3,"semAct":{
"http://all.example/act1":" code1 "
}
"min":2,"max":3,"semActs": [
{ "name": "http://all.example/act1", "contents": " code1 " }
]
},
{
"type":"tripleConstraint",
Expand All @@ -240,9 +240,9 @@
"nodeKind":"literal"
},
"min":1,"max":"*",
"semAct":{
"http://all.example/act1":" %{printf(\"品川\\n\");%} "
},
"semActs": [
{ "name": "http://all.example/act1", "contents": " %{printf(\"品川\\n\");%} " }
],
"annotations":[
[
"http://a.example/annot1",
Expand All @@ -268,9 +268,9 @@
"type":"valueClass"
},
"min":1,"max":"*",
"semAct":{
"http://all.example/act1":" code1 "
}
"semActs": [
{ "name": "http://all.example/act1", "contents": " code1 " }
]
},
{
"type":"tripleConstraint",
Expand All @@ -279,9 +279,9 @@
"type":"valueClass"
},
"min":1,"max":"*",
"semAct":{
"http://all.example/act1":" code1 "
}
"semActs": [
{ "name": "http://all.example/act1", "contents": " code1 " }
]
}
]
}
Expand Down Expand Up @@ -322,9 +322,6 @@
}
},
{
"type":"wrapper",
"expression":
{
"type":"tripleConstraint",
"predicate":"http://all.example/pattern",
"value":{
Expand All @@ -344,12 +341,10 @@
]
}
]
},"semAct":{
"http://all.example/act1":" code1 "
}
},"semAct":{
"http://all.example/act2":" code2 "
}
},"semActs": [
{ "name": "http://all.example/act1", "contents": " code1 " },
{ "name": "http://all.example/act2", "contents": " code2 " }
]
}
]
},
Expand Down
20 changes: 10 additions & 10 deletions parsedSchemas/kitchenSink.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schem#"
},
"startAct": {
"http://ex.example/#foo": " initializer for ignored extension "
},
"startActs": [
{ "name": "http://ex.example/#foo", "contents": " initializer for ignored extension " }
],
"start": "http://ex.example/IssueShape",
"shapes": {
"http://ex.example/IssueShape": {
Expand Down Expand Up @@ -97,9 +97,9 @@
],
"min": 0,
"max": 1,
"semAct": {
"http://ex.example/#foo": " asdfasdf "
}
"semActs": [
{ "name": "http://ex.example/#foo", "contents": " asdfasdf " }
]
},
{
"type": "tripleConstraint",
Expand Down Expand Up @@ -266,10 +266,10 @@
"type": "valueClass",
"nodeKind": "bnode"
},
"semAct": {
"http://ex.example/#foo": " ignored ",
"http://ex.example/#bar": " also ignored "
}
"semActs": [
{ "name": "http://ex.example/#foo", "contents": " ignored "},
{ "name": "http://ex.example/#bar", "contents": " also ignored " }
]
}
]
},
Expand Down
4 changes: 3 additions & 1 deletion parsedSchemas/open1dotcloseCode1.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"type": "tripleConstraint",
"predicate": "http://a.example/p1",
"value": { "type": "valueClass" },
"semAct": { "http://a.example/semAct1": " code1 " }
"semActs": [
{ "name": "http://a.example/semAct1", "contents": " code1 " }
]
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions parsedSchemas/open3groupdotcloseCode1.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
}
}
],
"semAct": {
"http://a.example/semAct1": " code1 "
}
"semActs": [
{ "name": "http://a.example/semAct1", "contents": " code1 " }
]
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions parsedSchemas/open3groupdotclosecard23Annot3Code2.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
[ "http://a.example/annot2", "\"2\"" ],
[ "http://a.example/annot3", "\"3\"" ]
],
"semAct": {
"http://a.example/semAct1": " code1 ",
"http://a.example/semAct2": " code2 "
}
"semActs": [
{ "name": "http://a.example/semAct1", "contents": " code1 " },
{ "name": "http://a.example/semAct2", "contents": " code2 " }
]
}
}
}
Expand Down
15 changes: 7 additions & 8 deletions parsedSchemas/openopen1dotcloseCode1closeCode2.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
"http://a.example/IssueShape": {
"type": "shape",
"expression": {
"type": "wrapper",
"expression": {
"type": "tripleConstraint",
"predicate": "http://a.example/p1",
"value": { "type": "valueClass" },
"semAct": { "http://a.example/semAct1": " code1 " }
},
"semAct": { "http://a.example/semAct2": " code2 " }
"type": "tripleConstraint",
"predicate": "http://a.example/p1",
"value": { "type": "valueClass" },
"semActs": [
{ "name": "http://a.example/semAct1", "contents": " code1 " },
{ "name": "http://a.example/semAct2", "contents": " code2 " }
]
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion parsedSchemas/startCode1.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "schema",
"prefixes": {},
"startAct": { "http://a.example/semAct1": " code1 " },
"startActs": [ { "name": "http://a.example/semAct1", "contents": " code1 " } ],
"shapes":{
"http://a.example/IssueShape": {
"type": "shape",
Expand Down
2 changes: 1 addition & 1 deletion parsedSchemas/startCode1startRef.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "schema",
"prefixes": {},
"startAct": { "http://a.example/semAct1": " code1 " },
"startActs": [ { "name": "http://a.example/semAct1", "contents": " code1 " } ],
"start": "http://a.example/IssueShape",
"shapes":{
"http://a.example/IssueShape": {
Expand Down
9 changes: 5 additions & 4 deletions parsedSchemas/startCode3.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"type": "schema",
"prefixes": {},
"startAct": { "http://a.example/semAct1": " code1 ",
"http://a.example/semAct2": " code2 ",
"http://a.example/semAct3": " code3 "
},
"startActs": [
{ "name": "http://a.example/semAct1", "contents": " code1 "},
{ "name": "http://a.example/semAct2", "contents": " code2 "},
{ "name": "http://a.example/semAct3", "contents": " code3 "}
],
"shapes":{
"http://a.example/IssueShape": {
"type": "shape",
Expand Down

0 comments on commit 24103fd

Please sign in to comment.