This repository has been archived by the owner on Jan 20, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Shapes] Refactor metaclass generation to be decoupled from implement…
…ation class generation
- Loading branch information
Showing
9 changed files
with
189 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
...s-shapes/drools-shapes-generator-plugin/src/test/resources/ontologies/crossAttributes.owl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
Prefix: dc: <http://purl.org/dc/elements/1.1/> | ||
Prefix: owl: <http://www.w3.org/2002/07/owl#> | ||
Prefix: rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
Prefix: xml: <http://www.w3.org/XML/1998/namespace> | ||
Prefix: xsd: <http://www.w3.org/2001/XMLSchema#> | ||
Prefix: rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
Prefix: test: <http://org/drools/test#> | ||
|
||
|
||
|
||
Ontology: <http://org/drools/test> | ||
|
||
|
||
AnnotationProperty: <http://drools.org/shapes/attribute> | ||
|
||
|
||
Datatype: rdf:PlainLiteral | ||
|
||
|
||
Datatype: xsd:string | ||
|
||
|
||
ObjectProperty: test:myAttr | ||
|
||
Annotations: | ||
<http://drools.org/shapes/attribute> "" | ||
|
||
Domain: | ||
test:Klass1 or test:Klass2 | ||
|
||
Range: | ||
test:Tgt1 or test:Tgt2 | ||
|
||
|
||
Class: test:Klass1 | ||
|
||
SubClassOf: | ||
test:myAttr only test:Tgt1 | ||
|
||
|
||
Class: test:Klass2 | ||
|
||
SubClassOf: | ||
((test:myAttr some test:Tgt2) | ||
and (test:myAttr min 0 test:Tgt2)) | ||
and ((test:myAttr only test:Tgt2) | ||
and (test:myAttr max 1 test:Tgt2)) | ||
|
||
|
||
Class: test:Tgt2 | ||
|
||
|
||
Class: test:Tgt1 | ||
|
||
|
||
Individual: test:y | ||
|
||
|
||
Individual: test:z | ||
|
||
|
||
Individual: test:x | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.