Skip to content

Commit 376cc62

Browse files
committed
IC
1 parent f595007 commit 376cc62

23 files changed

Lines changed: 10004 additions & 63 deletions

File tree

aas.schema.json

Lines changed: 1532 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"$condition": {
3+
"$match": [
4+
{
5+
"$contains": [
6+
{
7+
"$field": "$aasdesc#endpoints[].protocolInformation.href"
8+
},
9+
{
10+
"$strVal": "localhost"
11+
}
12+
]
13+
},
14+
{
15+
"$eq": [
16+
{
17+
"$field": "$aasdesc#assetKind"
18+
},
19+
{
20+
"$strVal": "Instance"
21+
}
22+
]
23+
},
24+
{
25+
"$startsWith": [
26+
{
27+
"$field": "$aasdesc#idShort"
28+
},
29+
{
30+
"$strVal": "Test"
31+
}
32+
]
33+
}
34+
]
35+
}
36+
}

basyx.aasrepository/basyx.aasrepository-feature-search/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@
8080
<groupId>commons-io</groupId>
8181
<artifactId>commons-io</artifactId>
8282
</dependency>
83+
<dependency>
84+
<groupId>co.elastic.clients</groupId>
85+
<artifactId>elasticsearch-java</artifactId>
86+
<version>9.0.1</version>
87+
</dependency>
8388
</dependencies>
8489

8590
</project>

basyx.aasrepository/basyx.aasrepository-feature-search/src/test/java/org/eclipse/digitaltwin/basyx/aasrepository/feature/search/TestSearchAasRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void testRepo() throws FileNotFoundException, DeserializationException {
6767
QueryResponse response = result.getBody();
6868
assert response != null;
6969
List<AssetAdministrationShell> shells = response.result.stream().map(o->(AssetAdministrationShell)o).toList();
70-
Assert.assertEquals(3,shells.size());
70+
Assert.assertEquals(4,shells.size());
7171
}
7272

7373
private static AASQuery queryFromFile(File file) throws FileNotFoundException, DeserializationException {

0 commit comments

Comments
 (0)