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
b3ff5cec
Commit
b3ff5cec
authored
10 years ago
by
Jérôme David
Browse files
Options
Downloads
Patches
Plain Diff
Use OntModel.setStrictMode(false) to allow Jena to deal with RDFS ontologies and some OWL2 features
parent
e10317c9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/fr/inrialpes/exmo/ontowrap/jena25/JENAOntologyFactory.java
+2
-0
2 additions, 0 deletions
...r/inrialpes/exmo/ontowrap/jena25/JENAOntologyFactory.java
with
2 additions
and
0 deletions
src/fr/inrialpes/exmo/ontowrap/jena25/JENAOntologyFactory.java
+
2
−
0
View file @
b3ff5cec
...
@@ -60,6 +60,7 @@ public class JENAOntologyFactory extends OntologyFactory {
...
@@ -60,6 +60,7 @@ public class JENAOntologyFactory extends OntologyFactory {
onto
.
setFormalism
(
formalismId
);
onto
.
setFormalism
(
formalismId
);
onto
.
setFormURI
(
formalismUri
);
onto
.
setFormURI
(
formalismUri
);
onto
.
setOntology
(
(
OntModel
)
ontology
);
onto
.
setOntology
(
(
OntModel
)
ontology
);
onto
.
getOntology
().
setStrictMode
(
false
);
//onto.setFile( uri );// unknown
//onto.setFile( uri );// unknown
// to be checked : why several ontologies in a model ???
// to be checked : why several ontologies in a model ???
// If no URI can be extracted from ontology, then we use the physical URI
// If no URI can be extracted from ontology, then we use the physical URI
...
@@ -91,6 +92,7 @@ public class JENAOntologyFactory extends OntologyFactory {
...
@@ -91,6 +92,7 @@ public class JENAOntologyFactory extends OntologyFactory {
if
(
onto
!=
null
)
return
onto
;
if
(
onto
!=
null
)
return
onto
;
try
{
try
{
OntModel
m
=
ModelFactory
.
createOntologyModel
(
OntModelSpec
.
OWL_MEM
,
null
);
OntModel
m
=
ModelFactory
.
createOntologyModel
(
OntModelSpec
.
OWL_MEM
,
null
);
m
.
setStrictMode
(
false
);
m
.
read
(
uri
.
toString
());
m
.
read
(
uri
.
toString
());
onto
=
new
JENAOntology
(
onlyLocalEntities
);
onto
=
new
JENAOntology
(
onlyLocalEntities
);
onto
.
setFile
(
uri
);
onto
.
setFile
(
uri
);
...
...
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