Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
911df81
Add rdfs:subClassOf and rdf:type predicates to support kinds.
twalmsley Feb 28, 2024
0cce9fa
Spelling correction.
twalmsley Mar 1, 2024
295e065
Add useful comments to explain what is going on in a unit test.
twalmsley Mar 14, 2024
ae2fd23
Fix javadoc problem.
twalmsley Mar 14, 2024
9182397
Merge branch 'main' into 196-kinds-as-rdfssubclassof
GCHQDeveloper42 Apr 5, 2024
bebcd16
Linting.
GCHQDeveloper42 Apr 5, 2024
d718cd5
Merge branch 'main' into 196-kinds-as-rdfssubclassof
GCHQDeveloper42 Apr 5, 2024
0216cfb
Replace large switch statement with a lookup table.
twalmsley Apr 23, 2024
84c733c
Merge branch 'main' into 211-improve-hqdmobjectfactory
GCHQDeveloper42 Apr 23, 2024
7e25e96
Merge branch 'main' into 211-improve-hqdmobjectfactory
twalmsley Jul 27, 2025
c77684d
Merge pull request #1 from twalmsley/211-improve-hqdmobjectfactory
twalmsley Jul 27, 2025
2c87d59
Merge pull request #2 from twalmsley/196-kinds-as-rdfssubclassof
twalmsley Jul 27, 2025
779594e
Added the Overview presentation
twalmsley Jul 27, 2025
176ddb8
Merge pull request #3 from twalmsley/add-overview-presentation
twalmsley Jul 27, 2025
864c947
Added the Overview presentation
twalmsley Jul 27, 2025
9f2885c
Merge branch 'add-overview-presentation'
twalmsley Jul 27, 2025
0603e3b
Added @SuppressWarnings("unchecked") annotations to improve type safe…
twalmsley Jul 28, 2025
ec7e77c
Use skos:prefLabel instead of hqdm:data_EntityName
twalmsley Jul 29, 2025
cb6ee2e
Updated to latest HQDM ontology.
twalmsley Jul 31, 2025
e73e060
Remove duplicate 'if' statements.
twalmsley Jul 31, 2025
c7f9992
Use skos:definition instead of hqdm:value for sign values.
twalmsley Aug 4, 2025
35256ac
Update ExampleSigns to ExamplePatterns and the corresponding unit test.
twalmsley Aug 5, 2025
6ba86fb
Update to use SKOS_DEFINITION where necessary.
twalmsley Aug 5, 2025
8f8118d
Update the test data and tests to use patterns instead of signs.
twalmsley Aug 6, 2025
fac9a95
Added some F35-related entity types.
twalmsley Aug 7, 2025
d4e2d6d
Created a system, system component, and ordinary funtional object mod…
twalmsley Aug 8, 2025
0b4dd72
Added classes for the engine system separate from the aircraft system.
twalmsley Aug 8, 2025
c085b1c
Change the package and module for the F35 example domain extensions.
twalmsley Aug 8, 2025
a3f00df
Fix bugs in the F35 domain model extensions.
twalmsley Aug 8, 2025
80586c8
Relax the 120 column line length limit.
twalmsley Aug 8, 2025
2358729
Added InstalledF135EngineInF135System and related classes.
twalmsley Aug 8, 2025
068cbd4
Added InstalledF135TurbineInF135System and related classes.
twalmsley Aug 8, 2025
012f47e
Added a UML diagram generator to the F35 extensions example.
twalmsley Aug 8, 2025
502d0df
Tweaks to the UML diagram generator.
twalmsley Aug 8, 2025
d94bef5
F35ModelExtensionsTest in the examples module creates an Engine Syste…
twalmsley Aug 11, 2025
18bbb65
Added InstalledF35AirframeInF35Aircraft and associated classes.
twalmsley Aug 11, 2025
f4f202e
Added the installed airframe in the aircraft.
twalmsley Aug 11, 2025
f8b9e91
Added the installed engine in the aircraft.
twalmsley Aug 11, 2025
7fe3f23
Added the installed ejection seat in the aircraft.
twalmsley Aug 11, 2025
bc94fb4
Added turbine and VLS to the F35 Aircraft extension and example.
twalmsley Aug 12, 2025
e9d3096
Added possible world.
twalmsley Aug 12, 2025
3deb9ef
Use shorter IDs in the F35ModelExtensionTest to make diagrams easier …
twalmsley Aug 12, 2025
67c5ede
Cosmetic refactor
twalmsley Aug 12, 2025
8bece8c
Add a mechanism for domain extensions to provide their model as TTL.
twalmsley Aug 12, 2025
5851c56
Add a PossibleWorld to the F35ModelExtensionTest.
twalmsley Aug 12, 2025
e3515dc
Hide F35 extension module impls.
twalmsley Aug 13, 2025
b0ca18e
Hide example extension module impls.
twalmsley Aug 13, 2025
45e2c27
Added a README for the F35 model extension example.
twalmsley Aug 13, 2025
13b617d
Added intended roles to the Java classes.
twalmsley Aug 14, 2025
d288158
Added intended roles to the F35 example TTL file.
twalmsley Aug 14, 2025
83fdb54
WIP Checkpoint
twalmsley Aug 27, 2025
ed8dabc
Set dates for the car requirement and gave PointsInTime their own nam…
twalmsley Aug 31, 2025
069d227
Renamed functions and variables for clarity in the possible worlds ex…
twalmsley Sep 2, 2025
936e0c2
PossibleWorlds example: added an activity requirement and requirement…
twalmsley Sep 2, 2025
511643d
Rename one of the examples.
twalmsley Sep 2, 2025
8297c51
Deleted superfluous presentation slides.
twalmsley Nov 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.png
.idea
.vscode
.project
Expand Down
27 changes: 14 additions & 13 deletions checkstyle-suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@
<!DOCTYPE suppressions PUBLIC "-//Checkstyle//DTD Suppressions 1.2//EN" "https://checkstyle.org/dtds/suppressions_1_2.dtd">

<suppressions>
<!-- global suppressions -->
<suppress checks="AvoidStarImport" files="\.java" />
<!-- global suppressions -->
<suppress checks="AvoidStarImport" files="\.java" />

<!-- core suppressions -->
<suppress checks="AbbreviationAsWordInName" files="UID\.java" />
<!-- core suppressions -->
<suppress checks="AbbreviationAsWordInName" files="UID\.java" />

<!-- examples suppressions -->
<suppress checks="LineLength" files="ExampleDataObjects.java|ExampleRdl.java|ExampleAssociations.java|MagmaCoreService.java" />
<suppress checks="MethodLength" files="ExampleDataObjects.java" />
<!-- examples suppressions -->
<suppress checks="LineLength"
files="ClassServices.java|ExampleDataObjects.java|ExampleRdl.java|ExampleAssociations.java|MagmaCoreService.java" />
<suppress checks="MethodLength" files="ExampleDataObjects.java" />

<!-- hqdm-core suppressions -->
<suppress checks="MethodName" files="impl/*" />
<suppress checks="TypeName" files="Function_.java" />
<suppress checks="ConstantName" files="HQDM.java" />
<suppress checks="AbbreviationAsWordInName" files="IRI.java|HQDM.java|RDFS.java|UID.java" />
</suppressions>
<!-- hqdm-core suppressions -->
<suppress checks="MethodName" files="impl/*" />
<suppress checks="TypeName" files="Function_.java" />
<suppress checks="ConstantName" files="HQDM.java" />
<suppress checks="AbbreviationAsWordInName" files="IRI.java|HQDM.java|RDFS.java|UID.java" />
</suppressions>
4 changes: 2 additions & 2 deletions checkstyles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

<module name="LineLength">
<property name="fileExtensions" value="java" />
<property name="max" value="120" />
<property name="max" value="200" />
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://" />
</module>

Expand Down Expand Up @@ -224,7 +224,7 @@
</module>
<module name="AbbreviationAsWordInName">
<property name="ignoreFinal" value="false" />
<property name="allowedAbbreviationLength" value="0" />
<property name="allowedAbbreviationLength" value="10" />
<property name="tokens" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, ANNOTATION_DEF, ANNOTATION_FIELD_DEF,
PARAMETER_DEF, VARIABLE_DEF, METHOD_DEF, PATTERN_VARIABLE_DEF, RECORD_DEF,
RECORD_COMPONENT_DEF" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ public List<? extends Thing> findBySignValue(
*
* @param community The {@link RecognizingLanguageCommunity} that recognizes
* the sign value.
* @param pattern The {@link Pattern} the sign conforms to.
* @param value {@link String} the partial sign value to look for.
* @param pointInTime {@link PointInTime} the point in time we are interested
* in.
Expand All @@ -221,7 +220,6 @@ public List<? extends Thing> findBySignValue(
*/
public List<? extends Thing> findByPartialSignValue(
final RecognizingLanguageCommunity community,
final Pattern pattern,
final String value,
final PointInTime pointInTime) throws MagmaCoreException {

Expand All @@ -235,8 +233,7 @@ public List<? extends Thing> findByPartialSignValue(
final QueryResultList queryResultList = database
.executeQuery(String.format(MagmaCoreServiceQueries.FIND_BY_PARTIAL_SIGN_VALUE_CASE_INSENSITIVE_QUERY,
value,
community.getId(),
pattern.getId()));
community.getId()));

// Filter by the pointInTime
final QueryResultList queryResults = filterByPointInTime(when, queryResultList);
Expand Down Expand Up @@ -300,9 +297,11 @@ public List<? extends Thing> findByTypeKindAndSignPattern(

final Instant when = Instant.parse(pointInTimeValue);

final String queryString = String.format(MagmaCoreServiceQueries.FIND_OBJECTS_BY_TYPE_AND_SIGN_PATTERN,
type, kind, pattern, type, kind, pattern);

final QueryResultList queryResultList = database
.executeQuery(String.format(MagmaCoreServiceQueries.FIND_OBJECTS_BY_TYPE_AND_SIGN_PATTERN,
type, kind, pattern, type, kind, pattern));
.executeQuery(queryString);

// Filter by the pointInTime
final QueryResultList queryResults = filterByPointInTime(when, queryResultList);
Expand Down Expand Up @@ -669,6 +668,7 @@ private static SignPatternDto toSignPatternDto(final QueryResult qr) {
* @return {@link Thing} that was found.
* @throws RuntimeException If no or multiple results were found.
*/
@SuppressWarnings("unchecked")
public <T extends Thing> T findByEntityName(final String entityName) {
final List<Thing> searchResult = findByPredicateIriAndValue(HQDM.ENTITY_NAME, entityName);

Expand All @@ -688,6 +688,7 @@ public <T extends Thing> T findByEntityName(final String entityName) {
* @param predicate the predicate {@link IRI}
* @return a List of {@link Thing} that were found.
*/
@SuppressWarnings("unchecked")
public <T extends Thing> List<T> findByPredicateIriOnly(final IRI predicate) {
return (List<T>) database.findByPredicateIriOnly(predicate);
}
Expand All @@ -700,6 +701,7 @@ public <T extends Thing> List<T> findByPredicateIriOnly(final IRI predicate) {
* @param value The value of the predicate.
* @return a List of {@link Thing} that were found.
*/
@SuppressWarnings("unchecked")
public <T extends Thing> List<T> findByPredicateIriAndValue(final IRI predicate, final Object value) {
return (List<T>) database.findByPredicateIriAndValue(predicate, value);
}
Expand Down
Loading