-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
How to use #ask
to query data stored via Semantic Cite?
#99
Comments
You should I believe. Have a look at https://github.com/SemanticMediaWiki/SemanticCite/blob/master/docs/02-property-mapping.md |
Setting this up takes a bit of time but once you have done so ... Basically you query the subobject which is holding the data. From the result you can build the display of results as with every other query. |
A more primitive example: https://sandbox.semantic-mediawiki.org/wiki/Gilbert%E2%80%99s_Dragon_Resources_query Here you have to think of good citation key naming to be able to query for specific citations only. |
#ask
to query data stored via Semantic Cite?
#ask
to query data stored via Semantic Cite?#ask
to query data stored via Semantic Cite?
I would like to do something slightly different, and it does not seem to work as I had expected: When I run an Should I use a different query or is this not supported for now? Many thanks! |
I created the following example which may get you what you are seeing for: Citable resources stored In the end it depends on the data stored for the resource. If you decoupled storage of metadata and usage of metadata you will indeed not get the pages. Probably reusing the results for a second query with a template gets the connection. Have not tried this yet. |
Thanks for the example! As you suspected, I indeed have them decoupled as we use a single page on which we import our Zotero library. |
@rubenvandeven you might want to try https://pypi.org/project/py-3rdparty-mediawiki/ 's wikiquery command line to get your json. |
@WolfgangFahl Thanks for the suggestion. It seems like a convenient tool to export an ask to a json from cli. For now I worked around the issue by running a bot over all pages and adding an additional [[Cited reference]] property that links to the SemanticCite subobject. In case this is useful to anyone, the code can be found here. |
@rubenvandeven - that bot looks interesting. It might be much shorter if you'd use the https://pypi.org/project/py-3rdparty-mediawiki/ and https://pypi.org/project/wikirender/ libraries. Together with https://pypi.org/project/pylodstorage/ and https://github.com/WolfgangFahl/pyOnlineSpreadSheetEditing a whole word of options might be opened up for you. I am also interested in your work for for my research and would love to get in touch with you personally. |
Question ¿enhacement?
I would like to be able to include in the text the reference, something like:
The book Blabla, A. (2010) "foo bla whatever" is so important ...
Could I do that with an ask?
thanx
The text was updated successfully, but these errors were encountered: