-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsnapquery.puml
75 lines (61 loc) · 1.88 KB
/
snapquery.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
@startuml
' snapquery UML model
' see https://github.com/WolfgangFahl/snapquery/blob/main/snapquery.puml
hide circle
package snapquery {
class NamedQuery {
- query_id : str
- namespace : str
- name : str
- sparql : str
- url : Optional[str]
- title : Optional[str]
- description : Optional[str]
+ execute(endpoint_name: str, limit: int, timeout: float, result_format: str)
}
class Endpoint {
- name : string - lang : string
- endpoint : string
- website : string
- database : string - method : string
- prefixes : string
}
NamedQuery --> QueryStats : query_id
Endpoint --> QueryStats : endpoint_name
class QueryDetails {
- query_id : str
- params : str
- param_count : int
- lines : int
- size : int
}
QueryDetails --> ReferencedRessources : query_id
ReferencedRessources --> Property : property_identifier
ReferencedRessources --> QItem : qitem_identifier
}
note right of Endpoint
see [[https://github.com/WolfgangFahl/pyLoDStorage/blob/66a90ddf94d6ae7436914de330d000a63be75f41/lodstorage/query.py#L707 lodstorage.query]]
Represents an endpoint configuration for a SPARQL
query service, including connection details
and prefixes used in queries.
end note
note right of NamedQuery
The query_id is generated from namespace and name
and used as a primary key e.g. wikidata-examples.Cats
end note
note right of QueryStats
statistics about the execution of a query
end note
note right of Property
Represents a property with a label and identifier
end note
note right of QItem
Represents a QItem with a label and identifier
end note
note right of QueryDetails
Stores details for a named query
end note
note right of ReferencedRessources
Connects QueryDetails to Property and QItem
end note
@enduml