-
-
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
Allow CiteRef annotations within #ask query results #40
Comments
Hi,
In versions of SMW before 2.4.0 `[[CiteRef::...]]` annotations worked when
retrieved through an ask query, that is a `CiteRef` annotation could be
stored within a text property and when displayed with an ask query the
citation would be properly generated. In 2.4.0+, ask queries whose results
contain a `CiteRef` annotation just print out the key and not a citation.
I'm a bit unsure about the context, could you design an example on the
sandbox as to what is queried and what is expected.
Cheers
…On 3/9/17, dm-mitre ***@***.***> wrote:
### Setup and configuration
- SMW version: 2.4.0
- SCI version: 1.2.0
- MW version: 1.29.0-wmf.8
- DB: MySQL 5.7.17
### Issue
In versions of SMW before 2.4.0 `[[CiteRef::...]]` annotations worked when
retrieved through an ask query, that is a `CiteRef` annotation could be
stored within a text property and when displayed with an ask query the
citation would be properly generated. In 2.4.0+, ask queries whose results
contain a `CiteRef` annotation just print out the key and not a citation.
I believe this is related to
SemanticMediaWiki/SemanticMediaWiki#1314
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#40
|
Example here: https://sandbox.semantic-mediawiki.org/wiki/Semantic_Cite_Annotation_Within_Ask Note how the key is echoed in the ask query result. |
👍
I wasn't aware of users relying on such behaviour and since it can be a legitimate use case, I added a small change SemanticMediaWiki/SemanticMediaWiki/pull/2325 to SMW-core to allow for such scenarios to be supported without requiring a special handling in this extension.
#1320 and #1324 are to avoid that in-text annotations are imported into pages that are not expected to be associated with an entity (those that are stored in raw form like
Notes@kghbln FYI I will note the difference in processing for #setWhen using
The [[ ... :: ... ]]When instead of the This results the The difference in processing is due to a how and when string processing appears and needs to be returned to an output instance. For |
The cited example works as expected after SemanticMediaWiki/SemanticMediaWiki#2325 but it requires 2.5.0 to work with. |
Setup and configuration
Issue
In versions of SMW before 2.4.0
[[CiteRef::...]]
annotations worked when retrieved through an ask query, that is aCiteRef
annotation could be stored within a text property and when displayed with an ask query the citation would be properly generated. In 2.4.0+, ask queries whose results contain aCiteRef
annotation just print out the key and not a citation.I believe this is related to SemanticMediaWiki/SemanticMediaWiki#1314
The text was updated successfully, but these errors were encountered: