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,148 @@
1
+ @prefix : <https://wordlift.io/shacl/google/google-article/> .
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/article
6
+ # Generated: 2026-01-13T11:23:11Z
7
+ # Notes: required properties => errors; recommended properties => warnings.
8
+
9
+ :google_ArticleShape
10
+ a sh:NodeShape ;
11
+ sh:targetClass schema:Article ;
12
+ sh:property [
13
+ sh:path schema:author ;
14
+ sh:minCount 1 ;
15
+ sh:severity sh:Warning ;
16
+ sh:message "Recommended by Google: author." ;
17
+ ] ;
18
+ sh:property [
19
+ sh:path schema:dateModified ;
20
+ sh:minCount 1 ;
21
+ sh:severity sh:Warning ;
22
+ sh:message "Recommended by Google: dateModified." ;
23
+ ] ;
24
+ sh:property [
25
+ sh:path schema:datePublished ;
26
+ sh:minCount 1 ;
27
+ sh:severity sh:Warning ;
28
+ sh:message "Recommended by Google: datePublished." ;
29
+ ] ;
30
+ sh:property [
31
+ sh:path schema:headline ;
32
+ sh:minCount 1 ;
33
+ sh:severity sh:Warning ;
34
+ sh:message "Recommended by Google: headline." ;
35
+ ] ;
36
+ sh:property [
37
+ sh:path schema:image ;
38
+ sh:minCount 1 ;
39
+ sh:severity sh:Warning ;
40
+ sh:message "Recommended by Google: image." ;
41
+ ] ;
42
+ sh:property [
43
+ sh:path schema:name ;
44
+ sh:minCount 1 ;
45
+ sh:severity sh:Warning ;
46
+ sh:message "Recommended by Google: name." ;
47
+ ] ;
48
+ sh:property [
49
+ sh:path schema:url ;
50
+ sh:minCount 1 ;
51
+ sh:severity sh:Warning ;
52
+ sh:message "Recommended by Google: url." ;
53
+ ] ;
54
+ .
55
+
56
+ :google_BlogPostingShape
57
+ a sh:NodeShape ;
58
+ sh:targetClass schema:BlogPosting ;
59
+ sh:property [
60
+ sh:path schema:author ;
61
+ sh:minCount 1 ;
62
+ sh:severity sh:Warning ;
63
+ sh:message "Recommended by Google: author." ;
64
+ ] ;
65
+ sh:property [
66
+ sh:path schema:dateModified ;
67
+ sh:minCount 1 ;
68
+ sh:severity sh:Warning ;
69
+ sh:message "Recommended by Google: dateModified." ;
70
+ ] ;
71
+ sh:property [
72
+ sh:path schema:datePublished ;
73
+ sh:minCount 1 ;
74
+ sh:severity sh:Warning ;
75
+ sh:message "Recommended by Google: datePublished." ;
76
+ ] ;
77
+ sh:property [
78
+ sh:path schema:headline ;
79
+ sh:minCount 1 ;
80
+ sh:severity sh:Warning ;
81
+ sh:message "Recommended by Google: headline." ;
82
+ ] ;
83
+ sh:property [
84
+ sh:path schema:image ;
85
+ sh:minCount 1 ;
86
+ sh:severity sh:Warning ;
87
+ sh:message "Recommended by Google: image." ;
88
+ ] ;
89
+ sh:property [
90
+ sh:path schema:name ;
91
+ sh:minCount 1 ;
92
+ sh:severity sh:Warning ;
93
+ sh:message "Recommended by Google: name." ;
94
+ ] ;
95
+ sh:property [
96
+ sh:path schema:url ;
97
+ sh:minCount 1 ;
98
+ sh:severity sh:Warning ;
99
+ sh:message "Recommended by Google: url." ;
100
+ ] ;
101
+ .
102
+
103
+ :google_NewsArticleShape
104
+ a sh:NodeShape ;
105
+ sh:targetClass schema:NewsArticle ;
106
+ sh:property [
107
+ sh:path schema:author ;
108
+ sh:minCount 1 ;
109
+ sh:severity sh:Warning ;
110
+ sh:message "Recommended by Google: author." ;
111
+ ] ;
112
+ sh:property [
113
+ sh:path schema:dateModified ;
114
+ sh:minCount 1 ;
115
+ sh:severity sh:Warning ;
116
+ sh:message "Recommended by Google: dateModified." ;
117
+ ] ;
118
+ sh:property [
119
+ sh:path schema:datePublished ;
120
+ sh:minCount 1 ;
121
+ sh:severity sh:Warning ;
122
+ sh:message "Recommended by Google: datePublished." ;
123
+ ] ;
124
+ sh:property [
125
+ sh:path schema:headline ;
126
+ sh:minCount 1 ;
127
+ sh:severity sh:Warning ;
128
+ sh:message "Recommended by Google: headline." ;
129
+ ] ;
130
+ sh:property [
131
+ sh:path schema:image ;
132
+ sh:minCount 1 ;
133
+ sh:severity sh:Warning ;
134
+ sh:message "Recommended by Google: image." ;
135
+ ] ;
136
+ sh:property [
137
+ sh:path schema:name ;
138
+ sh:minCount 1 ;
139
+ sh:severity sh:Warning ;
140
+ sh:message "Recommended by Google: name." ;
141
+ ] ;
142
+ sh:property [
143
+ sh:path schema:url ;
144
+ sh:minCount 1 ;
145
+ sh:severity sh:Warning ;
146
+ sh:message "Recommended by Google: url." ;
147
+ ] ;
148
+ .