Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logical definition with filtered trees #49

Merged
merged 60 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
378df38
Replace spotify docker plugin
matthewhorridge Jul 31, 2024
b9eb5f0
Remove commented out plugins that are no longer needed
matthewhorridge Jul 31, 2024
327ffc8
Merge pull request #35 from protegeproject/replace-spotify-docker-plugin
matthewhorridge Jul 31, 2024
241cb9a
ci: version bump 1.3.8
Jul 31, 2024
7183cb7
Add arg to specify path to Jar file
matthewhorridge Aug 1, 2024
35ae207
Use maven-exec plugin and install for docker push
matthewhorridge Aug 1, 2024
c5272d1
Merge branch 'main' into replace-spotify-docker-plugin
matthewhorridge Aug 1, 2024
f569627
Merge pull request #36 from protegeproject/replace-spotify-docker-plugin
matthewhorridge Aug 1, 2024
8769753
ci: version bump 1.3.9
Aug 1, 2024
51ad763
Remove release profile
matthewhorridge Aug 1, 2024
933a300
Merge branch 'main' into clean-up-pom
matthewhorridge Aug 1, 2024
6b5bfe9
Merge pull request #37 from protegeproject/clean-up-pom
matthewhorridge Aug 1, 2024
5259a3a
ci: version bump 1.3.10
Aug 1, 2024
4356603
Addresses https://github.com/who-icatx/icatx-project/issues/77
matthewhorridge Aug 1, 2024
960ab3a
Remove WebProtegeFormsApiApplication
matthewhorridge Aug 1, 2024
4233c5c
Added OWLDataFactory bean that was previously in an imported config
matthewhorridge Aug 1, 2024
fc0dc6a
Merge pull request #38 from protegeproject/incorporate-webprotege-forms
matthewhorridge Aug 1, 2024
89f9245
ci: version bump 1.3.11
Aug 1, 2024
20fae0a
Fixes #39
matthewhorridge Aug 2, 2024
6db1cb3
Merge pull request #40 from protegeproject/fix-issue-39
matthewhorridge Aug 2, 2024
5047ec6
ci: version bump 1.3.12
Aug 2, 2024
762d0c1
Modified class hierarchy provider to support a fixed root class
matthewhorridge Sep 27, 2024
a0f1f1f
Initial push with unfinished get logical definitons
tudorache Oct 10, 2024
d174961
Deleted unnecessary classes
tudorache Oct 10, 2024
9a18ffd
fixwd some compilation errors, still does not work
tudorache Oct 10, 2024
0826a76
created extractors for logical definitions and necessary conditions, …
tudorache Oct 11, 2024
f671c0f
Merge remote-tracking branch 'origin/main-WHO' into logicalDefs
alexsilaghi Oct 14, 2024
e2268a8
Merge remote-tracking branch 'origin/main-WHO' into logicalDefs
tudorache Oct 14, 2024
549143d
fixing fetch logical definitions
alexsilaghi Oct 14, 2024
04797fb
Merge remote-tracking branch 'origin/logicalDefs' into logicalDefs
tudorache Oct 14, 2024
264d54e
added the action for update logical definitions and necessary conditi…
tudorache Oct 14, 2024
3ce0dca
Merge remote-tracking branch 'origin/main-WHO' into logicalDefs
alexsilaghi Oct 14, 2024
206008c
Merge branch 'logicalDefs' of https://github.com/protegeproject/webpr…
alexsilaghi Oct 14, 2024
dcec889
Major changes in the way we provide hierarchies (wip)
matthewhorridge Oct 15, 2024
97a5a20
Removed System.err printing
matthewhorridge Oct 15, 2024
8fdcde1
implemented the update logical definitions
tudorache Oct 16, 2024
4180a70
removed some @notnull annotations from params
tudorache Oct 16, 2024
21b2d06
Merge branch 'logicalDefs' of https://github.com/protegeproject/webpr…
alexsilaghi Oct 17, 2024
61c3ef7
fixing command binding issues
alexsilaghi Oct 17, 2024
30c705a
fix for generating subclass axioms rather than equivalent axiom
tudorache Oct 17, 2024
a94a09c
fix for getting the logical defs
tudorache Oct 17, 2024
7c847ae
refactored to use accumulator
alexsilaghi Oct 17, 2024
bd85617
fixed bug on fetching parent.
alexsilaghi Oct 17, 2024
b40c65d
Set backend-api dependency to 2.0.1
matthewhorridge Oct 17, 2024
13f08c4
Merge remote-tracking branch 'origin/filtered-hierarchies' into logic…
alexsilaghi Oct 18, 2024
a5abfa4
partially merged
alexsilaghi Oct 18, 2024
193885a
fixed instantiating the array.
alexsilaghi Oct 18, 2024
f1a16c7
Merge branch 'logicalDefs' into logicalDefs-bis
alexsilaghi Oct 21, 2024
cec20ed
added filtered trees
alexsilaghi Oct 22, 2024
cb07691
Filtered hierarchies (#48)
matthewhorridge Oct 28, 2024
b6dcf88
ci: version bump 1.3.13
Oct 28, 2024
3c7fe48
bumped version
soimugeo Oct 28, 2024
5a3c738
Merge branch 'main-WHO' of https://github.com/protegeproject/webprote…
soimugeo Oct 28, 2024
ee35b07
Merge branch 'main' of https://github.com/protegeproject/webprotege-b…
soimugeo Oct 28, 2024
35c1cc8
updated backend-api and fixed use of SetNamedHierarchyAction
soimugeo Oct 28, 2024
b1c183c
updated tests
soimugeo Oct 28, 2024
bdf4037
updated POM
soimugeo Oct 28, 2024
66f8db3
fix integration tests about forms
soimugeo Oct 29, 2024
72e598d
removed unused AddNamedHierarchyAction and response
soimugeo Oct 29, 2024
8dcb297
refactored AddNamedHierarchyCommandHandler
soimugeo Oct 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>edu.stanford.protege</groupId>
<artifactId>webprotege-backend-service</artifactId>
<version>1.3.22-WHO</version>
<version>2.0.1-WHO</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -67,6 +67,11 @@
<artifactId>webprotege-common</artifactId>
<version>0.9.8</version>
</dependency>
<dependency>
<groupId>edu.stanford.protege</groupId>
<artifactId>webprotege-forms</artifactId>
<version>1.1.7</version>
</dependency>
<dependency>
<groupId>edu.stanford.protege</groupId>
<artifactId>webprotege-criteria</artifactId>
Expand All @@ -86,7 +91,7 @@
<dependency>
<groupId>edu.stanford.protege</groupId>
<artifactId>webprotege-backend-api</artifactId>
<version>1.0.26-WHO</version>
<version>2.0.2-WHO</version>
</dependency>
<dependency>
<groupId>edu.stanford.protege</groupId>
Expand Down Expand Up @@ -457,6 +462,21 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<systemPropertyVariables>
<spring.profiles.active>test</spring.profiles.active>
</systemPropertyVariables>
<includes>
<include>**/*TestCase.java</include>
<include>**/*Test.java</include>
<include>**/*IT.java</include>
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
import edu.stanford.protege.webprotege.filemanager.FileContents;
import edu.stanford.protege.webprotege.forms.EntityFormRepositoryImpl;
import edu.stanford.protege.webprotege.forms.EntityFormSelectorRepositoryImpl;
import edu.stanford.protege.webprotege.hierarchy.NamedHierarchyManager;
import edu.stanford.protege.webprotege.hierarchy.NamedHierarchyManagerImpl;
import edu.stanford.protege.webprotege.hierarchy.NamedHierarchyRepository;
import edu.stanford.protege.webprotege.index.*;
import edu.stanford.protege.webprotege.inject.*;
import edu.stanford.protege.webprotege.inject.project.ProjectDirectoryFactory;
Expand All @@ -41,7 +44,6 @@
import edu.stanford.protege.webprotege.revision.*;
import edu.stanford.protege.webprotege.search.EntitySearchFilterRepositoryImpl;
import edu.stanford.protege.webprotege.sharing.ProjectSharingSettingsManagerImpl;
import edu.stanford.protege.webprotege.storage.MinioFileDownloader;
import edu.stanford.protege.webprotege.storage.MinioProperties;
import edu.stanford.protege.webprotege.tag.EntityTagsRepositoryImpl;
import edu.stanford.protege.webprotege.tag.TagRepositoryImpl;
Expand Down Expand Up @@ -575,4 +577,14 @@ MinioClient minioClient(MinioProperties properties) {
.build();
}

@Bean
NamedHierarchyRepository namedHierarchyRepository(ObjectMapper p0, MongoTemplate p1) {
return new NamedHierarchyRepository(p0, p1);
}

@Bean
NamedHierarchyManager hierarchiesManager(OWLDataFactory dataFactory, NamedHierarchyRepository repository) {
return new NamedHierarchyManagerImpl(dataFactory, repository);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -363,4 +363,12 @@ public static Optional<String> getFreshEntityLangTag(OWLEntity entity) {
return Optional.of(langTag);
}
}

public static OWLObjectProperty getOWLTopObjectProperty() {
return DataFactory.getOWLObjectProperty(OWLRDFVocabulary.OWL_TOP_OBJECT_PROPERTY.getIRI());
}

public static OWLDataProperty getOWLTopDataProperty() {
return DataFactory.getOWLDataProperty(OWLRDFVocabulary.OWL_TOP_DATA_PROPERTY.getIRI());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@
import edu.stanford.protege.webprotege.icd.actions.GetClassAncestorsActionHandler;
import edu.stanford.protege.webprotege.icd.hierarchy.ClassHierarchyRetiredClassDetector;
import edu.stanford.protege.webprotege.index.*;
import edu.stanford.protege.webprotege.individuals.*;
import edu.stanford.protege.webprotege.individuals.CreateIndividualsChangeListGeneratorFactory;
import edu.stanford.protege.webprotege.individuals.CreateNamedIndividualsActionHandler;
import edu.stanford.protege.webprotege.individuals.GetIndividualsActionHandler;
import edu.stanford.protege.webprotege.individuals.GetIndividualsPageContainingIndividualActionHandler;
import edu.stanford.protege.webprotege.ipc.EventDispatcher;
import edu.stanford.protege.webprotege.issues.*;
import edu.stanford.protege.webprotege.lang.*;
import edu.stanford.protege.webprotege.linearization.LinearizationManager;
import edu.stanford.protege.webprotege.logicaldefinitions.*;
import edu.stanford.protege.webprotege.mansyntax.*;
import edu.stanford.protege.webprotege.mansyntax.render.*;
import edu.stanford.protege.webprotege.match.*;
Expand Down Expand Up @@ -502,6 +506,14 @@ AddCommentHandler addEntityCommentActionHandler(ProjectId p1,
}


@Bean
SetNamedHierarchyActionHandler addNamedHierarchyActionHandler(AccessManager p0,
NamedHierarchyManager p1) {
return new SetNamedHierarchyActionHandler(p0, p1);
}



@Bean
DeleteEntityCommentHandler deleteEntityCommentActionHandler(EntityDiscussionThreadRepository p1) {
return new DeleteEntityCommentHandler(p1);
Expand Down Expand Up @@ -578,7 +590,7 @@ GetClassFrameActionHandler getClassFrameActionHandler(AccessManager p1,

@Bean
GetEntityHierarchyChildrenActionHandler getClassHierarchyChildrenActionHandler(AccessManager p1,
HierarchyProviderMapper p2,
HierarchyProviderManager p2,
DeprecatedEntityChecker p3,
GraphNodeRenderer p4,
DictionaryManager p5) {
Expand All @@ -587,23 +599,23 @@ GetEntityHierarchyChildrenActionHandler getClassHierarchyChildrenActionHandler(A

@Bean
GetEntityHierarchyParentsActionHandler getClassHierarchyParentsActionHandler(AccessManager p1,
HierarchyProviderMapper p2,
HierarchyProviderManager p2,
RenderingManager p3) {
return new GetEntityHierarchyParentsActionHandler(p1, p2, p3);
}


@Bean
GetHierarchyPathsToRootActionHandler getHierarchyPathsToRootActionHandler(AccessManager p1,
HierarchyProviderMapper p2,
HierarchyProviderManager p2,
GraphNodeRenderer p3) {
return new GetHierarchyPathsToRootActionHandler(p1, p2, p3);
}


@Bean
GetHierarchyRootsActionHandler getHierarchyRootsActionHandler(AccessManager p1,
HierarchyProviderMapper p2,
HierarchyProviderManager p2,
EntityNodeRenderer p3) {
return new GetHierarchyRootsActionHandler(p1, p2, p3);
}
Expand Down Expand Up @@ -733,7 +745,7 @@ GetProjectInfoActionHandler getProjectInfoActionHandler(AccessManager p1,

@Bean
GetHierarchySiblingsActionHandler getHierarchySiblingsActionHandler(AccessManager p1,
HierarchyProviderMapper p2,
HierarchyProviderManager p2,
GraphNodeRenderer p3, DictionaryManager p4) {
return new GetHierarchySiblingsActionHandler(p1, p2, p3, p4);
}
Expand Down Expand Up @@ -991,4 +1003,20 @@ ExistingOntologyMergeAddActionHandler sExistingOntologyMergeAddActionHandler(Acc
HasApplyChanges p5) {
return new ExistingOntologyMergeAddActionHandler(p1, p2, p3, p4, p5);
}

@Bean
GetLogicalDefinitionsActionHandler getLogicalDefinitionsActionHandler(AccessManager p1,
LogicalDefinitionExtractor p2,
NecessaryConditionsExtractor p3) {
return new GetLogicalDefinitionsActionHandler(p1, p2, p3);

}


@Bean
UpdateLogicalDefinitionsActionHandler getUpdateLogicalDefinitionsActionHandler(AccessManager p1,
HasApplyChanges p2,
UpdateLogicalDefinitionsChangeListGeneratorFactory p3) {
return new UpdateLogicalDefinitionsActionHandler(p1, p2, p3);
}
}
Loading
Loading