forked from wjfrancis/ga-vocabs
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from Kurrawong/master
Convert Excel and update
- Loading branch information
Showing
69 changed files
with
15,276 additions
and
11,549 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pyshacl | ||
httpx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import glob | ||
from rdflib import Graph | ||
from rdflib.namespace import SDO | ||
|
||
for f in glob.glob("/Users/nick/Work/ga/ga-vocabs/vocabularies/*.ttl"): | ||
g = Graph().parse(f) | ||
addition = """ | ||
PREFIX sdo: <https://schema.org/> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
<https://linked.data.gov.au/org/ga> | ||
a sdo:Organization ; | ||
sdo:description "Geoscience Australia is Australia's pre-eminent public sector geoscience organisation. It is the nation's trusted advisor on the geology and geography of Australia. It applies science and technology to describe and understand the Earth for the benefit of Australia."@en ; | ||
sdo:name "Geoscience Australia" ; | ||
sdo:url "https://www.ga.gov.au"^^xsd:anyURI ; | ||
. | ||
""" | ||
g += Graph().parse(data=addition, format="turtle") | ||
g.bind("sdo", SDO) | ||
g.serialize(destination=f, format="longturtle") | ||
|
||
print(f"Done {f}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
# /Users/nick/Library/Caches/pypoetry/virtualenvs/vocexcel-XgwzAsEM-py3.11/bin/python /Users/nick/Work/rdflib/VocExcel/vocexcel/__main__.py Borehole_Construction_Type_Boreholes.xlsx > Borehole_Construction_Type_Boreholes.ttl | ||
# echo "Borehole_Construction_Type_Boreholes" | ||
|
||
|
||
FILES=/Users/nick/Work/ga/ga-vocabs/excel/0.4.3/*.xlsx | ||
|
||
for f in $FILES | ||
do | ||
echo "Processing $f" | ||
fttl=${f%.*}.ttl | ||
|
||
/Users/nick/Library/Caches/pypoetry/virtualenvs/vocexcel-XgwzAsEM-py3.11/bin/python /Users/nick/Work/rdflib/VocExcel/vocexcel/__main__.py $f > $fttl | ||
echo "Completed $fttl" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.