Skip to content

Commit 72e9a1b

Browse files
committed
made the scraping process collect date created for repos, and date created and published for releases
1 parent fdee954 commit 72e9a1b

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

sosen/schema/software_schema.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@
125125
"@type": "xsd:string"
126126
}
127127
},
128+
"sd:dateCreated": {
129+
"@path": ["dateCreated", "excerpt"],
130+
"@type": "xsd:datetime"
131+
},
128132
"sd:author": {
129133
"@class": "schema:Person",
130134
"@id": {
@@ -176,7 +180,15 @@
176180
"@path": ["releases", "excerpt", "html_url"],
177181
"@type": "xsd:anyURI"
178182
}
179-
]
183+
],
184+
"sd:dateCreated": {
185+
"@type": "xsd:datetime",
186+
"@path": ["releases", "excerpt", "dateCreated"]
187+
},
188+
"sd:datePublished": {
189+
"@type": "xsd:datetime",
190+
"@path": ["releases", "excerpt", "datePublished"]
191+
}
180192
}, {
181193
"@class": "sd:SoftwareVersion",
182194
"@id": {

0 commit comments

Comments
 (0)