wordlift-sdk 2.9.1__py3-none-any.whl → 2.10.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. wordlift_sdk/__init__.py +1 -1
  2. wordlift_sdk/render/__init__.py +30 -0
  3. wordlift_sdk/render/browser.py +132 -0
  4. wordlift_sdk/render/cleanup_options.py +24 -0
  5. wordlift_sdk/render/html_renderer.py +86 -0
  6. wordlift_sdk/render/render_options.py +21 -0
  7. wordlift_sdk/render/rendered_page.py +13 -0
  8. wordlift_sdk/render/xhtml_cleaner.py +126 -0
  9. wordlift_sdk/structured_data/__init__.py +27 -0
  10. wordlift_sdk/structured_data/agent.py +49 -0
  11. wordlift_sdk/structured_data/agent_generator.py +12 -0
  12. wordlift_sdk/structured_data/batch.py +220 -0
  13. wordlift_sdk/structured_data/constants.py +1 -0
  14. wordlift_sdk/structured_data/dataset_resolver.py +32 -0
  15. wordlift_sdk/structured_data/debug.py +23 -0
  16. wordlift_sdk/structured_data/engine.py +2875 -0
  17. wordlift_sdk/structured_data/inputs.py +58 -0
  18. wordlift_sdk/structured_data/io.py +44 -0
  19. wordlift_sdk/structured_data/materialization.py +70 -0
  20. wordlift_sdk/structured_data/models.py +48 -0
  21. wordlift_sdk/structured_data/orchestrator.py +194 -0
  22. wordlift_sdk/structured_data/rendering.py +43 -0
  23. wordlift_sdk/structured_data/schema_guide.py +17 -0
  24. wordlift_sdk/structured_data/structured_data_engine.py +58 -0
  25. wordlift_sdk/structured_data/validation.py +31 -0
  26. wordlift_sdk/structured_data/yarrrml_pipeline.py +34 -0
  27. wordlift_sdk/url_source/__init__.py +7 -2
  28. wordlift_sdk/validation/__init__.py +7 -0
  29. wordlift_sdk/validation/generator.py +446 -0
  30. wordlift_sdk/validation/shacl.py +205 -0
  31. wordlift_sdk/validation/shacls/__init__.py +1 -0
  32. wordlift_sdk/validation/shacls/google-article.ttl +148 -0
  33. wordlift_sdk/validation/shacls/google-book.ttl +660 -0
  34. wordlift_sdk/validation/shacls/google-breadcrumb.ttl +33 -0
  35. wordlift_sdk/validation/shacls/google-carousel.ttl +37 -0
  36. wordlift_sdk/validation/shacls/google-carousels-beta.ttl +291 -0
  37. wordlift_sdk/validation/shacls/google-course.ttl +43 -0
  38. wordlift_sdk/validation/shacls/google-dataset.ttl +146 -0
  39. wordlift_sdk/validation/shacls/google-discussion-forum.ttl +247 -0
  40. wordlift_sdk/validation/shacls/google-education-qa.ttl +75 -0
  41. wordlift_sdk/validation/shacls/google-employer-rating.ttl +40 -0
  42. wordlift_sdk/validation/shacls/google-event.ttl +46 -0
  43. wordlift_sdk/validation/shacls/google-factcheck.ttl +86 -0
  44. wordlift_sdk/validation/shacls/google-faqpage.ttl +38 -0
  45. wordlift_sdk/validation/shacls/google-image-license-metadata.ttl +93 -0
  46. wordlift_sdk/validation/shacls/google-job-posting.ttl +74 -0
  47. wordlift_sdk/validation/shacls/google-local-business.ttl +483 -0
  48. wordlift_sdk/validation/shacls/google-loyalty-program.ttl +61 -0
  49. wordlift_sdk/validation/shacls/google-math-solvers.ttl +63 -0
  50. wordlift_sdk/validation/shacls/google-merchant-listing.ttl +435 -0
  51. wordlift_sdk/validation/shacls/google-movie.ttl +44 -0
  52. wordlift_sdk/validation/shacls/google-organization.ttl +180 -0
  53. wordlift_sdk/validation/shacls/google-paywalled-content.ttl +34 -0
  54. wordlift_sdk/validation/shacls/google-product-snippet.ttl +121 -0
  55. wordlift_sdk/validation/shacls/google-product-variants.ttl +64 -0
  56. wordlift_sdk/validation/shacls/google-profile-page.ttl +130 -0
  57. wordlift_sdk/validation/shacls/google-qapage.ttl +195 -0
  58. wordlift_sdk/validation/shacls/google-recipe.ttl +201 -0
  59. wordlift_sdk/validation/shacls/google-return-policy.ttl +122 -0
  60. wordlift_sdk/validation/shacls/google-review-snippet.ttl +87 -0
  61. wordlift_sdk/validation/shacls/google-shipping-policy.ttl +606 -0
  62. wordlift_sdk/validation/shacls/google-software-app.ttl +40 -0
  63. wordlift_sdk/validation/shacls/google-speakable.ttl +20 -0
  64. wordlift_sdk/validation/shacls/google-vacation-rental.ttl +278 -0
  65. wordlift_sdk/validation/shacls/google-video.ttl +149 -0
  66. wordlift_sdk/validation/shacls/schemaorg-grammar.ttl +20540 -0
  67. {wordlift_sdk-2.9.1.dist-info → wordlift_sdk-2.10.2.dist-info}/METADATA +3 -1
  68. {wordlift_sdk-2.9.1.dist-info → wordlift_sdk-2.10.2.dist-info}/RECORD +69 -5
  69. {wordlift_sdk-2.9.1.dist-info → wordlift_sdk-2.10.2.dist-info}/WHEEL +0 -0
@@ -0,0 +1,278 @@
1
+ @prefix : <https://wordlift.io/shacl/google/google-vacation-rental/> .
2
+ @prefix sh: <http://www.w3.org/ns/shacl#> .
3
+ @prefix schema: <http://schema.org/> .
4
+
5
+ # Source: https://developers.google.com/search/docs/appearance/structured-data/vacation-rental
6
+ # Generated: 2026-01-13T11:24:00Z
7
+ # Notes: required properties => errors; recommended properties => warnings.
8
+
9
+ :google_VacationRentalShape
10
+ a sh:NodeShape ;
11
+ sh:targetClass schema:VacationRental ;
12
+ sh:property [
13
+ sh:path schema:containsPlace ;
14
+ sh:minCount 1 ;
15
+ ] ;
16
+ sh:property [
17
+ sh:path schema:identifier ;
18
+ sh:minCount 1 ;
19
+ ] ;
20
+ sh:property [
21
+ sh:path schema:image ;
22
+ sh:minCount 1 ;
23
+ ] ;
24
+ sh:property [
25
+ sh:path schema:latitude ;
26
+ sh:minCount 1 ;
27
+ ] ;
28
+ sh:property [
29
+ sh:path schema:longitude ;
30
+ sh:minCount 1 ;
31
+ ] ;
32
+ sh:property [
33
+ sh:path schema:name ;
34
+ sh:minCount 1 ;
35
+ ] ;
36
+ sh:property [
37
+ sh:path schema:occupancy ;
38
+ sh:minCount 1 ;
39
+ ] ;
40
+ sh:property [
41
+ sh:path schema:value ;
42
+ sh:minCount 1 ;
43
+ ] ;
44
+ sh:property [
45
+ sh:path schema:additionalType ;
46
+ sh:minCount 1 ;
47
+ sh:severity sh:Warning ;
48
+ sh:message "Recommended by Google: additionalType." ;
49
+ ] ;
50
+ sh:property [
51
+ sh:path schema:address ;
52
+ sh:minCount 1 ;
53
+ sh:severity sh:Warning ;
54
+ sh:message "Recommended by Google: address." ;
55
+ ] ;
56
+ sh:property [
57
+ sh:path schema:addressCountry ;
58
+ sh:minCount 1 ;
59
+ sh:severity sh:Warning ;
60
+ sh:message "Recommended by Google: addressCountry." ;
61
+ ] ;
62
+ sh:property [
63
+ sh:path schema:addressLocality ;
64
+ sh:minCount 1 ;
65
+ sh:severity sh:Warning ;
66
+ sh:message "Recommended by Google: addressLocality." ;
67
+ ] ;
68
+ sh:property [
69
+ sh:path schema:addressRegion ;
70
+ sh:minCount 1 ;
71
+ sh:severity sh:Warning ;
72
+ sh:message "Recommended by Google: addressRegion." ;
73
+ ] ;
74
+ sh:property [
75
+ sh:path schema:aggregateRating ;
76
+ sh:minCount 1 ;
77
+ sh:severity sh:Warning ;
78
+ sh:message "Recommended by Google: aggregateRating." ;
79
+ ] ;
80
+ sh:property [
81
+ sh:path schema:airportShuttle ;
82
+ sh:minCount 1 ;
83
+ sh:severity sh:Warning ;
84
+ sh:message "Recommended by Google: airportShuttle." ;
85
+ ] ;
86
+ sh:property [
87
+ sh:path schema:amenityFeature ;
88
+ sh:minCount 1 ;
89
+ sh:severity sh:Warning ;
90
+ sh:message "Recommended by Google: amenityFeature." ;
91
+ ] ;
92
+ sh:property [
93
+ sh:path schema:balcony ;
94
+ sh:minCount 1 ;
95
+ sh:severity sh:Warning ;
96
+ sh:message "Recommended by Google: balcony." ;
97
+ ] ;
98
+ sh:property [
99
+ sh:path schema:beachAccess ;
100
+ sh:minCount 1 ;
101
+ sh:severity sh:Warning ;
102
+ sh:message "Recommended by Google: beachAccess." ;
103
+ ] ;
104
+ sh:property [
105
+ sh:path schema:brand ;
106
+ sh:minCount 1 ;
107
+ sh:severity sh:Warning ;
108
+ sh:message "Recommended by Google: brand." ;
109
+ ] ;
110
+ sh:property [
111
+ sh:path schema:checkinTime ;
112
+ sh:minCount 1 ;
113
+ sh:severity sh:Warning ;
114
+ sh:message "Recommended by Google: checkinTime." ;
115
+ ] ;
116
+ sh:property [
117
+ sh:path schema:checkoutTime ;
118
+ sh:minCount 1 ;
119
+ sh:severity sh:Warning ;
120
+ sh:message "Recommended by Google: checkoutTime." ;
121
+ ] ;
122
+ sh:property [
123
+ sh:path schema:childFriendly ;
124
+ sh:minCount 1 ;
125
+ sh:severity sh:Warning ;
126
+ sh:message "Recommended by Google: childFriendly." ;
127
+ ] ;
128
+ sh:property [
129
+ sh:path schema:crib ;
130
+ sh:minCount 1 ;
131
+ sh:severity sh:Warning ;
132
+ sh:message "Recommended by Google: crib." ;
133
+ ] ;
134
+ sh:property [
135
+ sh:path schema:elevator ;
136
+ sh:minCount 1 ;
137
+ sh:severity sh:Warning ;
138
+ sh:message "Recommended by Google: elevator." ;
139
+ ] ;
140
+ sh:property [
141
+ sh:path schema:fireplace ;
142
+ sh:minCount 1 ;
143
+ sh:severity sh:Warning ;
144
+ sh:message "Recommended by Google: fireplace." ;
145
+ ] ;
146
+ sh:property [
147
+ sh:path schema:freeBreakfast ;
148
+ sh:minCount 1 ;
149
+ sh:severity sh:Warning ;
150
+ sh:message "Recommended by Google: freeBreakfast." ;
151
+ ] ;
152
+ sh:property [
153
+ sh:path schema:gymFitnessEquipment ;
154
+ sh:minCount 1 ;
155
+ sh:severity sh:Warning ;
156
+ sh:message "Recommended by Google: gymFitnessEquipment." ;
157
+ ] ;
158
+ sh:property [
159
+ sh:path schema:heating ;
160
+ sh:minCount 1 ;
161
+ sh:severity sh:Warning ;
162
+ sh:message "Recommended by Google: heating." ;
163
+ ] ;
164
+ sh:property [
165
+ sh:path schema:hotTub ;
166
+ sh:minCount 1 ;
167
+ sh:severity sh:Warning ;
168
+ sh:message "Recommended by Google: hotTub." ;
169
+ ] ;
170
+ sh:property [
171
+ sh:path schema:instantBookable ;
172
+ sh:minCount 1 ;
173
+ sh:severity sh:Warning ;
174
+ sh:message "Recommended by Google: instantBookable." ;
175
+ ] ;
176
+ sh:property [
177
+ sh:path schema:ironingBoard ;
178
+ sh:minCount 1 ;
179
+ sh:severity sh:Warning ;
180
+ sh:message "Recommended by Google: ironingBoard." ;
181
+ ] ;
182
+ sh:property [
183
+ sh:path schema:kitchen ;
184
+ sh:minCount 1 ;
185
+ sh:severity sh:Warning ;
186
+ sh:message "Recommended by Google: kitchen." ;
187
+ ] ;
188
+ sh:property [
189
+ sh:path schema:microwave ;
190
+ sh:minCount 1 ;
191
+ sh:severity sh:Warning ;
192
+ sh:message "Recommended by Google: microwave." ;
193
+ ] ;
194
+ sh:property [
195
+ sh:path schema:outdoorGrill ;
196
+ sh:minCount 1 ;
197
+ sh:severity sh:Warning ;
198
+ sh:message "Recommended by Google: outdoorGrill." ;
199
+ ] ;
200
+ sh:property [
201
+ sh:path schema:ovenStove ;
202
+ sh:minCount 1 ;
203
+ sh:severity sh:Warning ;
204
+ sh:message "Recommended by Google: ovenStove." ;
205
+ ] ;
206
+ sh:property [
207
+ sh:path schema:patio ;
208
+ sh:minCount 1 ;
209
+ sh:severity sh:Warning ;
210
+ sh:message "Recommended by Google: patio." ;
211
+ ] ;
212
+ sh:property [
213
+ sh:path schema:petsAllowed ;
214
+ sh:minCount 1 ;
215
+ sh:severity sh:Warning ;
216
+ sh:message "Recommended by Google: petsAllowed." ;
217
+ ] ;
218
+ sh:property [
219
+ sh:path schema:pool ;
220
+ sh:minCount 1 ;
221
+ sh:severity sh:Warning ;
222
+ sh:message "Recommended by Google: pool." ;
223
+ ] ;
224
+ sh:property [
225
+ sh:path schema:postalCode ;
226
+ sh:minCount 1 ;
227
+ sh:severity sh:Warning ;
228
+ sh:message "Recommended by Google: postalCode." ;
229
+ ] ;
230
+ sh:property [
231
+ sh:path schema:privateBeachAccess ;
232
+ sh:minCount 1 ;
233
+ sh:severity sh:Warning ;
234
+ sh:message "Recommended by Google: privateBeachAccess." ;
235
+ ] ;
236
+ sh:property [
237
+ sh:path schema:selfCheckinCheckout ;
238
+ sh:minCount 1 ;
239
+ sh:severity sh:Warning ;
240
+ sh:message "Recommended by Google: selfCheckinCheckout." ;
241
+ ] ;
242
+ sh:property [
243
+ sh:path schema:smokingAllowed ;
244
+ sh:minCount 1 ;
245
+ sh:severity sh:Warning ;
246
+ sh:message "Recommended by Google: smokingAllowed." ;
247
+ ] ;
248
+ sh:property [
249
+ sh:path schema:streetAddress ;
250
+ sh:minCount 1 ;
251
+ sh:severity sh:Warning ;
252
+ sh:message "Recommended by Google: streetAddress." ;
253
+ ] ;
254
+ sh:property [
255
+ sh:path schema:tv ;
256
+ sh:minCount 1 ;
257
+ sh:severity sh:Warning ;
258
+ sh:message "Recommended by Google: tv." ;
259
+ ] ;
260
+ sh:property [
261
+ sh:path schema:washerDryer ;
262
+ sh:minCount 1 ;
263
+ sh:severity sh:Warning ;
264
+ sh:message "Recommended by Google: washerDryer." ;
265
+ ] ;
266
+ sh:property [
267
+ sh:path schema:wheelchairAccessible ;
268
+ sh:minCount 1 ;
269
+ sh:severity sh:Warning ;
270
+ sh:message "Recommended by Google: wheelchairAccessible." ;
271
+ ] ;
272
+ sh:property [
273
+ sh:path schema:wifi ;
274
+ sh:minCount 1 ;
275
+ sh:severity sh:Warning ;
276
+ sh:message "Recommended by Google: wifi." ;
277
+ ] ;
278
+ .
@@ -0,0 +1,149 @@
1
+ @prefix : <https://wordlift.io/shacl/google/google-video/> .
2
+ @prefix sh: <http://www.w3.org/ns/shacl#> .
3
+ @prefix schema: <http://schema.org/> .
4
+
5
+ # Source: https://developers.google.com/search/docs/appearance/structured-data/video
6
+ # Generated: 2026-01-13T11:24:02Z
7
+ # Notes: required properties => errors; recommended properties => warnings.
8
+
9
+ :google_BroadcastEventShape
10
+ a sh:NodeShape ;
11
+ sh:targetClass schema:BroadcastEvent ;
12
+ sh:property [
13
+ sh:path schema:endDate ;
14
+ sh:minCount 1 ;
15
+ ] ;
16
+ sh:property [
17
+ sh:path schema:isLiveBroadcast ;
18
+ sh:minCount 1 ;
19
+ ] ;
20
+ sh:property [
21
+ sh:path schema:publication ;
22
+ sh:minCount 1 ;
23
+ ] ;
24
+ sh:property [
25
+ sh:path schema:startDate ;
26
+ sh:minCount 1 ;
27
+ ] ;
28
+ .
29
+
30
+ :google_ClipShape
31
+ a sh:NodeShape ;
32
+ sh:targetClass schema:Clip ;
33
+ sh:property [
34
+ sh:path schema:name ;
35
+ sh:minCount 1 ;
36
+ ] ;
37
+ sh:property [
38
+ sh:path schema:startOffset ;
39
+ sh:minCount 1 ;
40
+ ] ;
41
+ sh:property [
42
+ sh:path schema:url ;
43
+ sh:minCount 1 ;
44
+ ] ;
45
+ sh:property [
46
+ sh:path schema:endOffset ;
47
+ sh:minCount 1 ;
48
+ sh:severity sh:Warning ;
49
+ sh:message "Recommended by Google: endOffset." ;
50
+ ] ;
51
+ .
52
+
53
+ :google_SeekToActionShape
54
+ a sh:NodeShape ;
55
+ sh:targetClass schema:SeekToAction ;
56
+ sh:property [
57
+ sh:path schema:input ;
58
+ sh:minCount 1 ;
59
+ ] ;
60
+ sh:property [
61
+ sh:path schema:potentialAction ;
62
+ sh:minCount 1 ;
63
+ ] ;
64
+ sh:property [
65
+ sh:path schema:startOffset ;
66
+ sh:minCount 1 ;
67
+ ] ;
68
+ sh:property [
69
+ sh:path schema:target ;
70
+ sh:minCount 1 ;
71
+ ] ;
72
+ .
73
+
74
+ :google_VideoObjectShape
75
+ a sh:NodeShape ;
76
+ sh:targetClass schema:VideoObject ;
77
+ sh:property [
78
+ sh:path schema:name ;
79
+ sh:minCount 1 ;
80
+ ] ;
81
+ sh:property [
82
+ sh:path schema:thumbnailUrl ;
83
+ sh:minCount 1 ;
84
+ ] ;
85
+ sh:property [
86
+ sh:path schema:uploadDate ;
87
+ sh:minCount 1 ;
88
+ ] ;
89
+ sh:property [
90
+ sh:path schema:contentUrl ;
91
+ sh:minCount 1 ;
92
+ sh:severity sh:Warning ;
93
+ sh:message "Recommended by Google: contentUrl." ;
94
+ ] ;
95
+ sh:property [
96
+ sh:path schema:description ;
97
+ sh:minCount 1 ;
98
+ sh:severity sh:Warning ;
99
+ sh:message "Recommended by Google: description." ;
100
+ ] ;
101
+ sh:property [
102
+ sh:path schema:duration ;
103
+ sh:minCount 1 ;
104
+ sh:severity sh:Warning ;
105
+ sh:message "Recommended by Google: duration." ;
106
+ ] ;
107
+ sh:property [
108
+ sh:path schema:embedUrl ;
109
+ sh:minCount 1 ;
110
+ sh:severity sh:Warning ;
111
+ sh:message "Recommended by Google: embedUrl." ;
112
+ ] ;
113
+ sh:property [
114
+ sh:path schema:expires ;
115
+ sh:minCount 1 ;
116
+ sh:severity sh:Warning ;
117
+ sh:message "Recommended by Google: expires." ;
118
+ ] ;
119
+ sh:property [
120
+ sh:path schema:hasPart ;
121
+ sh:minCount 1 ;
122
+ sh:severity sh:Warning ;
123
+ sh:message "Recommended by Google: hasPart." ;
124
+ ] ;
125
+ sh:property [
126
+ sh:path schema:ineligibleRegion ;
127
+ sh:minCount 1 ;
128
+ sh:severity sh:Warning ;
129
+ sh:message "Recommended by Google: ineligibleRegion." ;
130
+ ] ;
131
+ sh:property [
132
+ sh:path schema:interactionStatistic ;
133
+ sh:minCount 1 ;
134
+ sh:severity sh:Warning ;
135
+ sh:message "Recommended by Google: interactionStatistic." ;
136
+ ] ;
137
+ sh:property [
138
+ sh:path schema:publication ;
139
+ sh:minCount 1 ;
140
+ sh:severity sh:Warning ;
141
+ sh:message "Recommended by Google: publication." ;
142
+ ] ;
143
+ sh:property [
144
+ sh:path schema:regionsAllowed ;
145
+ sh:minCount 1 ;
146
+ sh:severity sh:Warning ;
147
+ sh:message "Recommended by Google: regionsAllowed." ;
148
+ ] ;
149
+ .