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,122 @@
1
+ @prefix : <https://wordlift.io/shacl/google/google-return-policy/> .
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/return-policy
6
+ # Generated: 2026-01-13T11:23:47Z
7
+ # Notes: required properties => errors; recommended properties => warnings.
8
+
9
+ :google_URLShape
10
+ a sh:NodeShape ;
11
+ sh:targetClass schema:URL ;
12
+ sh:property [
13
+ sh:path schema:returnPolicyCategory ;
14
+ sh:minCount 1 ;
15
+ ] ;
16
+ sh:property [
17
+ sh:path schema:returnPolicySeasonalOverride ;
18
+ sh:minCount 1 ;
19
+ ] ;
20
+ sh:property [
21
+ sh:path schema:customerRemorseReturnFees ;
22
+ sh:minCount 1 ;
23
+ sh:severity sh:Warning ;
24
+ sh:message "Recommended by Google: customerRemorseReturnFees." ;
25
+ ] ;
26
+ sh:property [
27
+ sh:path schema:customerRemorseReturnLabelSource ;
28
+ sh:minCount 1 ;
29
+ sh:severity sh:Warning ;
30
+ sh:message "Recommended by Google: customerRemorseReturnLabelSource." ;
31
+ ] ;
32
+ sh:property [
33
+ sh:path schema:customerRemorseReturnShippingFeesAmount ;
34
+ sh:minCount 1 ;
35
+ sh:severity sh:Warning ;
36
+ sh:message "Recommended by Google: customerRemorseReturnShippingFeesAmount." ;
37
+ ] ;
38
+ sh:property [
39
+ sh:path schema:endDate ;
40
+ sh:minCount 1 ;
41
+ sh:severity sh:Warning ;
42
+ sh:message "Recommended by Google: endDate." ;
43
+ ] ;
44
+ sh:property [
45
+ sh:path schema:itemCondition ;
46
+ sh:minCount 1 ;
47
+ sh:severity sh:Warning ;
48
+ sh:message "Recommended by Google: itemCondition." ;
49
+ ] ;
50
+ sh:property [
51
+ sh:path schema:itemDefectReturnFees ;
52
+ sh:minCount 1 ;
53
+ sh:severity sh:Warning ;
54
+ sh:message "Recommended by Google: itemDefectReturnFees." ;
55
+ ] ;
56
+ sh:property [
57
+ sh:path schema:itemDefectReturnLabelSource ;
58
+ sh:minCount 1 ;
59
+ sh:severity sh:Warning ;
60
+ sh:message "Recommended by Google: itemDefectReturnLabelSource." ;
61
+ ] ;
62
+ sh:property [
63
+ sh:path schema:itemDefectReturnShippingFeesAmount ;
64
+ sh:minCount 1 ;
65
+ sh:severity sh:Warning ;
66
+ sh:message "Recommended by Google: itemDefectReturnShippingFeesAmount." ;
67
+ ] ;
68
+ sh:property [
69
+ sh:path schema:merchantReturnDays ;
70
+ sh:minCount 1 ;
71
+ sh:severity sh:Warning ;
72
+ sh:message "Recommended by Google: merchantReturnDays." ;
73
+ ] ;
74
+ sh:property [
75
+ sh:path schema:refundType ;
76
+ sh:minCount 1 ;
77
+ sh:severity sh:Warning ;
78
+ sh:message "Recommended by Google: refundType." ;
79
+ ] ;
80
+ sh:property [
81
+ sh:path schema:restockingFee ;
82
+ sh:minCount 1 ;
83
+ sh:severity sh:Warning ;
84
+ sh:message "Recommended by Google: restockingFee." ;
85
+ ] ;
86
+ sh:property [
87
+ sh:path schema:returnFees ;
88
+ sh:minCount 1 ;
89
+ sh:severity sh:Warning ;
90
+ sh:message "Recommended by Google: returnFees." ;
91
+ ] ;
92
+ sh:property [
93
+ sh:path schema:returnLabelSource ;
94
+ sh:minCount 1 ;
95
+ sh:severity sh:Warning ;
96
+ sh:message "Recommended by Google: returnLabelSource." ;
97
+ ] ;
98
+ sh:property [
99
+ sh:path schema:returnMethod ;
100
+ sh:minCount 1 ;
101
+ sh:severity sh:Warning ;
102
+ sh:message "Recommended by Google: returnMethod." ;
103
+ ] ;
104
+ sh:property [
105
+ sh:path schema:returnPolicyCountry ;
106
+ sh:minCount 1 ;
107
+ sh:severity sh:Warning ;
108
+ sh:message "Recommended by Google: returnPolicyCountry." ;
109
+ ] ;
110
+ sh:property [
111
+ sh:path schema:returnShippingFeesAmount ;
112
+ sh:minCount 1 ;
113
+ sh:severity sh:Warning ;
114
+ sh:message "Recommended by Google: returnShippingFeesAmount." ;
115
+ ] ;
116
+ sh:property [
117
+ sh:path schema:startDate ;
118
+ sh:minCount 1 ;
119
+ sh:severity sh:Warning ;
120
+ sh:message "Recommended by Google: startDate." ;
121
+ ] ;
122
+ .
@@ -0,0 +1,87 @@
1
+ @prefix : <https://wordlift.io/shacl/google/google-review-snippet/> .
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/review-snippet
6
+ # Generated: 2026-01-13T11:23:56Z
7
+ # Notes: required properties => errors; recommended properties => warnings.
8
+
9
+ :google_AggregateRatingShape
10
+ a sh:NodeShape ;
11
+ sh:targetClass schema:AggregateRating ;
12
+ sh:property [
13
+ sh:path schema:itemReviewed ;
14
+ sh:minCount 1 ;
15
+ ] ;
16
+ sh:property [
17
+ sh:path schema:name ;
18
+ sh:minCount 1 ;
19
+ ] ;
20
+ sh:property [
21
+ sh:path schema:ratingCount ;
22
+ sh:minCount 1 ;
23
+ ] ;
24
+ sh:property [
25
+ sh:path schema:ratingValue ;
26
+ sh:minCount 1 ;
27
+ ] ;
28
+ sh:property [
29
+ sh:path schema:reviewCount ;
30
+ sh:minCount 1 ;
31
+ ] ;
32
+ sh:property [
33
+ sh:path schema:bestRating ;
34
+ sh:minCount 1 ;
35
+ sh:severity sh:Warning ;
36
+ sh:message "Recommended by Google: bestRating." ;
37
+ ] ;
38
+ sh:property [
39
+ sh:path schema:worstRating ;
40
+ sh:minCount 1 ;
41
+ sh:severity sh:Warning ;
42
+ sh:message "Recommended by Google: worstRating." ;
43
+ ] ;
44
+ .
45
+
46
+ :google_ReviewShape
47
+ a sh:NodeShape ;
48
+ sh:targetClass schema:Review ;
49
+ sh:property [
50
+ sh:path schema:author ;
51
+ sh:minCount 1 ;
52
+ ] ;
53
+ sh:property [
54
+ sh:path schema:itemReviewed ;
55
+ sh:minCount 1 ;
56
+ ] ;
57
+ sh:property [
58
+ sh:path schema:name ;
59
+ sh:minCount 1 ;
60
+ ] ;
61
+ sh:property [
62
+ sh:path schema:ratingValue ;
63
+ sh:minCount 1 ;
64
+ ] ;
65
+ sh:property [
66
+ sh:path schema:reviewRating ;
67
+ sh:minCount 1 ;
68
+ ] ;
69
+ sh:property [
70
+ sh:path schema:bestRating ;
71
+ sh:minCount 1 ;
72
+ sh:severity sh:Warning ;
73
+ sh:message "Recommended by Google: bestRating." ;
74
+ ] ;
75
+ sh:property [
76
+ sh:path schema:datePublished ;
77
+ sh:minCount 1 ;
78
+ sh:severity sh:Warning ;
79
+ sh:message "Recommended by Google: datePublished." ;
80
+ ] ;
81
+ sh:property [
82
+ sh:path schema:worstRating ;
83
+ sh:minCount 1 ;
84
+ sh:severity sh:Warning ;
85
+ sh:message "Recommended by Google: worstRating." ;
86
+ ] ;
87
+ .