|
a |
|
b/src/test/java/org/sbaresearch/owl/TestResources.java |
|
|
1 |
/**
|
|
|
2 |
* Copyright (c) 2013/2014 Verein zur Foerderung der IT-Sicherheit in Oesterreich (SBA).
|
|
|
3 |
* The work has been developed in the TIMBUS Project and the above-mentioned are Members of the TIMBUS Consortium.
|
|
|
4 |
* TIMBUS is supported by the European Union under the 7th Framework Programme for research and technological
|
|
|
5 |
* development and demonstration activities (FP7/2007-2013) under grant agreement no. 269940.
|
|
|
6 |
*
|
|
|
7 |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
|
|
|
8 |
* the License. You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0
|
|
|
9 |
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
|
|
|
10 |
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including without
|
|
|
11 |
* limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTIBITLY, or FITNESS FOR A PARTICULAR
|
|
|
12 |
* PURPOSE. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise,
|
|
|
13 |
* unless required by applicable law or agreed to in writing, shall any Contributor be liable for damages, including
|
|
|
14 |
* any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this
|
|
|
15 |
* License or out of the use or inability to use the Work.
|
|
|
16 |
* See the License for the specific language governing permissions and limitation under the License.
|
|
|
17 |
*/
|
|
|
18 |
package org.sbaresearch.owl;
|
|
|
19 |
|
|
|
20 |
public class TestResources {
|
|
|
21 |
|
|
|
22 |
public static final String testOntology = "" +
|
|
|
23 |
"<?xml version=\"1.0\"?>\n" +
|
|
|
24 |
"<!DOCTYPE rdf:RDF [\n" +
|
|
|
25 |
" <!ENTITY kb \"http://test/kb#\" >\n" +
|
|
|
26 |
" <!ENTITY owl \"http://www.w3.org/2002/07/owl#\" >\n" +
|
|
|
27 |
" <!ENTITY xsd \"http://www.w3.org/2001/XMLSchema#\" >\n" +
|
|
|
28 |
" <!ENTITY rdfs \"http://www.w3.org/2000/01/rdf-schema#\" >\n" +
|
|
|
29 |
" <!ENTITY rdf \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" >\n" +
|
|
|
30 |
"]>\n" +
|
|
|
31 |
"<rdf:RDF xmlns=\"http://test/kb#\"\n" +
|
|
|
32 |
" xml:base=\"http://test/kb\"\n" +
|
|
|
33 |
" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\"\n" +
|
|
|
34 |
" xmlns:kb=\"http://test/kb#\"\n" +
|
|
|
35 |
" xmlns:owl=\"http://www.w3.org/2002/07/owl#\"\n" +
|
|
|
36 |
" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\"\n" +
|
|
|
37 |
" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n" +
|
|
|
38 |
" <owl:Ontology rdf:about=\"http://test/kb\"/>\n" +
|
|
|
39 |
"\n" +
|
|
|
40 |
" <owl:ObjectProperty rdf:about=\"&kb;objProp\"/>\n" +
|
|
|
41 |
" <owl:DatatypeProperty rdf:about=\"&kb;dataProp\"/>\n" +
|
|
|
42 |
" <owl:Class rdf:about=\"&kb;A\">\n" +
|
|
|
43 |
" <rdfs:subClassOf>\n" +
|
|
|
44 |
" <owl:Restriction>\n" +
|
|
|
45 |
" <owl:onProperty rdf:resource=\"&kb;objProp\"/>\n" +
|
|
|
46 |
" <owl:someValuesFrom rdf:resource=\"&kb;C\"/>\n" +
|
|
|
47 |
" </owl:Restriction>\n" +
|
|
|
48 |
" </rdfs:subClassOf>\n" +
|
|
|
49 |
" </owl:Class>\n" +
|
|
|
50 |
" <owl:Class rdf:about=\"&kb;B\">\n" +
|
|
|
51 |
" <rdfs:subClassOf>\n" +
|
|
|
52 |
" <owl:Restriction>\n" +
|
|
|
53 |
" <owl:onProperty rdf:resource=\"&kb;dataProp\"/>\n" +
|
|
|
54 |
" <owl:qualifiedCardinality rdf:datatype=\"&xsd;nonNegativeInteger\">1</owl:qualifiedCardinality>\n" +
|
|
|
55 |
" <owl:onDataRange rdf:resource=\"&xsd;string\"/>\n" +
|
|
|
56 |
" </owl:Restriction>\n" +
|
|
|
57 |
" </rdfs:subClassOf>\n" +
|
|
|
58 |
" </owl:Class>\n" +
|
|
|
59 |
" <owl:Class rdf:about=\"&kb;C\">\n" +
|
|
|
60 |
" <rdfs:subClassOf rdf:resource=\"&kb;B\"/>\n" +
|
|
|
61 |
" </owl:Class>\n" +
|
|
|
62 |
" \n" +
|
|
|
63 |
" <owl:NamedIndividual rdf:about=\"&kb;iA\">\n" +
|
|
|
64 |
" <rdf:type rdf:resource=\"&kb;A\"/>\n" +
|
|
|
65 |
" <objProp rdf:resource=\"&kb;iC\"/>\n" +
|
|
|
66 |
" </owl:NamedIndividual>\n" +
|
|
|
67 |
" <owl:NamedIndividual rdf:about=\"&kb;iB\">\n" +
|
|
|
68 |
" <rdf:type rdf:resource=\"&kb;B\"/>\n" +
|
|
|
69 |
" <dataProp>"iBdata"</dataProp>\n" +
|
|
|
70 |
" </owl:NamedIndividual>\n" +
|
|
|
71 |
" <owl:NamedIndividual rdf:about=\"&kb;iC\">\n" +
|
|
|
72 |
" <rdf:type rdf:resource=\"&kb;C\"/>\n" +
|
|
|
73 |
" <dataProp>iCdata</dataProp>\n" +
|
|
|
74 |
" </owl:NamedIndividual>\n" +
|
|
|
75 |
"</rdf:RDF>\n";
|
|
|
76 |
public static final String testOntologyWithoutPrefix = "" +
|
|
|
77 |
"<?xml version=\"1.0\"?>\n" +
|
|
|
78 |
"<!DOCTYPE rdf:RDF [\n" +
|
|
|
79 |
" <!ENTITY owl \"http://www.w3.org/2002/07/owl#\" >\n" +
|
|
|
80 |
" <!ENTITY xsd \"http://www.w3.org/2001/XMLSchema#\" >\n" +
|
|
|
81 |
" <!ENTITY rdfs \"http://www.w3.org/2000/01/rdf-schema#\" >\n" +
|
|
|
82 |
" <!ENTITY rdf \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" >\n" +
|
|
|
83 |
"]>\n" +
|
|
|
84 |
"<rdf:RDF xmlns=\"http://test/kb#\"\n" +
|
|
|
85 |
" xml:base=\"http://test/kb\"\n" +
|
|
|
86 |
" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\"\n" +
|
|
|
87 |
" xmlns:kb=\"http://test/kb#\"\n" +
|
|
|
88 |
" xmlns:owl=\"http://www.w3.org/2002/07/owl#\"\n" +
|
|
|
89 |
" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\"\n" +
|
|
|
90 |
" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n" +
|
|
|
91 |
" <owl:Ontology rdf:about=\"http://test/kb\"/>\n" +
|
|
|
92 |
"\n" +
|
|
|
93 |
" <owl:ObjectProperty rdf:about=\"&kb;objProp\"/>\n" +
|
|
|
94 |
" <owl:DatatypeProperty rdf:about=\"&kb;dataProp\"/>\n" +
|
|
|
95 |
" <owl:Class rdf:about=\"&kb;A\">\n" +
|
|
|
96 |
" <rdfs:subClassOf>\n" +
|
|
|
97 |
" <owl:Restriction>\n" +
|
|
|
98 |
" <owl:onProperty rdf:resource=\"&kb;objProp\"/>\n" +
|
|
|
99 |
" <owl:someValuesFrom rdf:resource=\"&kb;C\"/>\n" +
|
|
|
100 |
" </owl:Restriction>\n" +
|
|
|
101 |
" </rdfs:subClassOf>\n" +
|
|
|
102 |
" </owl:Class>\n" +
|
|
|
103 |
" <owl:Class rdf:about=\"&kb;B\">\n" +
|
|
|
104 |
" <rdfs:subClassOf>\n" +
|
|
|
105 |
" <owl:Restriction>\n" +
|
|
|
106 |
" <owl:onProperty rdf:resource=\"&kb;dataProp\"/>\n" +
|
|
|
107 |
" <owl:qualifiedCardinality rdf:datatype=\"&xsd;nonNegativeInteger\">1</owl:qualifiedCardinality>\n" +
|
|
|
108 |
" <owl:onDataRange rdf:resource=\"&xsd;string\"/>\n" +
|
|
|
109 |
" </owl:Restriction>\n" +
|
|
|
110 |
" </rdfs:subClassOf>\n" +
|
|
|
111 |
" </owl:Class>\n" +
|
|
|
112 |
" <owl:Class rdf:about=\"&kb;C\">\n" +
|
|
|
113 |
" <rdfs:subClassOf rdf:resource=\"&kb;B\"/>\n" +
|
|
|
114 |
" </owl:Class>\n" +
|
|
|
115 |
" \n" +
|
|
|
116 |
" <owl:NamedIndividual rdf:about=\"&kb;iA\">\n" +
|
|
|
117 |
" <rdf:type rdf:resource=\"&kb;A\"/>\n" +
|
|
|
118 |
" <objProp rdf:resource=\"&kb;iC\"/>\n" +
|
|
|
119 |
" </owl:NamedIndividual>\n" +
|
|
|
120 |
" <owl:NamedIndividual rdf:about=\"&kb;iB\">\n" +
|
|
|
121 |
" <rdf:type rdf:resource=\"&kb;B\"/>\n" +
|
|
|
122 |
" <dataProp>"iBdata"</dataProp>\n" +
|
|
|
123 |
" </owl:NamedIndividual>\n" +
|
|
|
124 |
" <owl:NamedIndividual rdf:about=\"&kb;iC\">\n" +
|
|
|
125 |
" <rdf:type rdf:resource=\"&kb;C\"/>\n" +
|
|
|
126 |
" <dataProp>iCdata</dataProp>\n" +
|
|
|
127 |
" </owl:NamedIndividual>\n" +
|
|
|
128 |
"</rdf:RDF>\n";
|
|
|
129 |
public static String ontologyBaseUrl = "http://test/kb";
|
|
|
130 |
}
|