Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Alignment API
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
moex
Alignment API
Commits
b94fa4b1
Commit
b94fa4b1
authored
15 years ago
by
Jérôme Euzenat
Browse files
Options
Downloads
Patches
Plain Diff
- improved and adapted EDOAL tests
parent
5a3a30d1
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/src/EDOALExportTest.java
+5
-5
5 additions, 5 deletions
test/src/EDOALExportTest.java
test/src/EDOALParserTest.java
+2
-709
2 additions, 709 deletions
test/src/EDOALParserTest.java
with
7 additions
and
714 deletions
test/src/EDOALExportTest.java
+
5
−
5
View file @
b94fa4b1
...
...
@@ -202,7 +202,7 @@ Does bot work anymore because not visitable
assertEquals
(
render
(
toExport
),
"<edoal:AttributeValueRestriction>"
+
"<edoal:onAttribute><edoal:Property rdf:about=\"http://my.sister#age\"/></edoal:onAttribute>"
+
"<edoal:comparator rdf:resource=\"http://www.w3.org/2001/XMLSchema#greater-than\"/>"
+
"<edoal:value>
18
</edoal:value>"
+
"<edoal:value>
<edoal:Literal edoal:string=\"18\"/>
</edoal:value>"
+
"</edoal:AttributeValueRestriction>"
);
toExport
=
new
ClassTypeRestriction
(
new
PropertyId
(
new
URI
(
"http://my.sister#age"
)),
new
Datatype
(
"integer-under-100"
));
assertEquals
(
render
(
toExport
),
"<edoal:PropertyTypeRestriction>"
...
...
@@ -275,7 +275,7 @@ Does bot work anymore because not visitable
+
"<edoal:Property rdf:about=\"http://vinum#age\"/>"
+
"</edoal:onAttribute>"
+
"<edoal:comparator rdf:resource=\"http://www.w3.org/2001/XMLSchema#greater-than\"/>"
+
"<edoal:value>
20
</edoal:value>"
+
"<edoal:value>
<edoal:Literal edoal:string=\"20\"/>
</edoal:value>"
+
"</edoal:AttributeValueRestriction>"
+
"</edoal:or>"
+
"</edoal:Class>"
);
}
...
...
@@ -289,7 +289,7 @@ Does bot work anymore because not visitable
assertEquals
(
render
(
new
PropertyValueRestriction
(
Comparator
.
EQUAL
,
new
Value
(
"18"
))),
"<edoal:ValueRestriction>"
+
"<edoal:comparator rdf:resource=\"http://www.w3.org/2001/XMLSchema#equals\"/>"
+
"<edoal:value>
18
</edoal:value>"
+
"<edoal:value>
<edoal:Literal edoal:string=\"18\"/>
</edoal:value>"
+
"</edoal:ValueRestriction>"
);
assertEquals
(
render
(
new
PropertyTypeRestriction
(
new
Datatype
(
"int"
))),
"<edoal:TypeRestriction><edoal:datatype>int</edoal:datatype></edoal:TypeRestriction>"
);
...
...
@@ -333,7 +333,7 @@ Does bot work anymore because not visitable
+
"</edoal:or></edoal:Property>"
+
"<edoal:ValueRestriction>"
+
"<edoal:comparator rdf:resource=\"http://www.w3.org/2001/XMLSchema#equals\"/>"
+
"<edoal:value>
5
</edoal:value></edoal:ValueRestriction>"
+
"<edoal:value>
<edoal:Literal edoal:string=\"5\"/>
</edoal:value></edoal:ValueRestriction>"
+
"</edoal:and></edoal:Property>"
);
toExport
=
new
PropertyConstruction
(
Constructor
.
NOT
,
Collections
.
singleton
((
PathExpression
)
new
PropertyId
(
new
URI
(
"http://mein/super/property"
))));
// JE2009-ERROR-HERE
...
...
@@ -612,7 +612,7 @@ Does bot work anymore because not visitable
+ "<edoal:attributeValueCondition>" + "<edoal:Restriction>"
+ "<edoal:onProperty><edoal:Property rdf:about=\"a0\"/></edoal:onProperty>"
+ "<edoal:comparator rdf:resource=\"http://www.w3.org/2001/XMLSchema#equals\"/>"
+ "<edoal:value>
val0
</edoal:value>" + "</edoal:Restriction>"
+ "<edoal:value>
<edoal:Literal edoal:string=\"val0\"/>
</edoal:value>" + "</edoal:Restriction>"
+ "</edoal:attributeValueCondition>" + "</edoal:Class>";
ClassId c1 = new ClassId("c1");
...
...
This diff is collapsed.
Click to expand it.
test/src/EDOALParserTest.java
+
2
−
709
View file @
b94fa4b1
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment