-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dumps #282
Conversation
scripts/dumps/prepare_items_dumps
Outdated
echo " | ||
@prefix wdt: <http://www.wikidata.org/prop/direct/> . | ||
@prefix inv: <http://inventaire.io/entity/> . | ||
@prefix invexamplar: <http://inventaire.io/items/> . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wuhu what a brand new name ha ?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe invex
as its should stay a short string as a prefix ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah that was temporary, and with the whole items dump being commented-out now, that could even be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed in c556bb8
|
||
# We only need the items entities for now | ||
curl -s "${dbHost}/items-prod/_design/items/_view/byEntity" | | ||
jq '.rows[] | [.id, .key[0]] | join(" wdt:P1574 ")' | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
arent you pushing item ID in the ttl with this line ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, that's why it's commented-out in prepare_dumps
, but maybe that should just be removed(?) Keeping track of it somewhere could be of value though
e7e5368
to
978e338
Compare
c556bb8
to
b8d81ef
Compare
…and wikibase:labels triples
including only the item (aka examplar) / entity relation and not any data on owners, for privacy reasons
as it's just a duplicate of rdfs:label and no use was identified yet
…ot generate any triple added to be helpful to couchdb-blazegraph-sync
instead of crashing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approving since, according to max, the rebase is only a translation from coffee to es6
entities dump
add
schema:dateCreated
(fromentity.created
)add
schema:dateModified
(fromentity.updated
)add
schema:version
(fromentity._rev
)add
wikibase:statements
(statements count)add
wikibase:labels
(labels count)remove
skos:prefLabel
(duplicated withrdfs:label
)items dump
sketched but commented-out as it doesn't pass the validation and might not be a good idea after all (see privacy concerns)