Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christian Pichot
AML-E-Project
Commits
d2f83a64
Commit
d2f83a64
authored
Apr 02, 2018
by
DanielPJFaria
Browse files
Corrected bug in parsing SKOS classes
parent
6160f95d
Changes
1
Hide whitespace changes
Inline
Side-by-side
AgreementMakerLight/src/aml/ontology/Ontology.java
View file @
d2f83a64
...
...
@@ -443,7 +443,8 @@ public class Ontology
//Add it to the global list of URIs (as a class)
int
id
=
uris
.
addURI
(
indivUri
,
EntityType
.
CLASS
);
//Add it to the class map
entities
.
add
(
id
);
entities
.
add
(
id
);
entityTypes
.
add
(
EntityType
.
CLASS
,
id
);
//Get the local name from the URI
String
name
=
uris
.
getLocalName
(
id
);
//Add the name to the classNames map
...
...
@@ -1268,6 +1269,7 @@ public class Ontology
//First exact cardinalities vs exact, min and max cardinalities
for
(
Integer
prop
:
card
.
keySet
())
{
//TODO: cardinality restrictions on object properties need to be processed differently
Vector
<
Integer
>
exact
=
new
Vector
<
Integer
>(
card
.
keySet
(
prop
));
for
(
int
i
=
0
;
i
<
exact
.
size
()-
1
;
i
++)
for
(
int
j
=
i
+
1
;
j
<
exact
.
size
();
j
++)
...
...
@@ -1289,6 +1291,7 @@ public class Ontology
//Then min vs max cardinalities
for
(
Integer
prop
:
minCard
.
keySet
())
{
//TODO: cardinality restrictions on object properties need to be processed differently
Set
<
Integer
>
min
=
minCard
.
keySet
(
prop
);
Set
<
Integer
>
max
=
maxCard
.
keySet
(
prop
);
if
(
max
==
null
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment