Discussion utilisateur:Sanjay

De Semantic MediaWiki - Sandbox

Hello and welcome Sanjay Kumar Sahu!

Thank you for registering at <sandbox.semantic-mediawiki.org>, the "sandbox" website of the Semantic MediaWiki project that allows you to carry out experiments and to try your "Semantic MediaWiki" skills. It also provides extension related example pages and helps reproducing software issues. Note that the language of this wiki is set to French (fr). You may want to have a look at the following pages:

on this wiki
on Semantic-MediaWiki.org
  • Getting started – Describes step by step how to kick start your wiki using Semantic MediaWiki
  • Getting support – Shows how to get support in case of problems or questions, e.g. via the mailing list
  • Reporting bugs and feature requests – Explains which information to gather and how to compile it for creating an issue.
  • User manual – Points to all sorts of interesting and helpful pages for the user of Semantic MediaWiki
  • Administrator manual – Points to all sorts of interesting and helpful pages for the admin of Semantic MediaWiki

-- WelcomeBot (discussion) 9 août 2016 à 13:20 (CEST)

Semantic Mediawiki-shortname of authors/users are not resolving to it's full name while displaying semantic data in a tabular format.[modifier le wikicode]

Hello, We have upgraded WIKI 1.25.3 with SMW 2.3 (62ada43) I can able to see the semantic data in a tabular representation with 3 columns like "Author", "Published" & "Title".

Here the only issue is, below any of author/User short names are not resolving to its full name. But, it was not an issue with the earlier versions.
shortname::User:Hnb
external author::dpp


  • Below is the page that I have created with all respective below four Template pages.

http://sandbox.semantic-mediawiki.org/wiki/SEA:Internal


  • Below are the list of Templates with code are used/called in above Semantic Query.

1. Template:Publication/list

2. Template:Publication/list/author

3. Template:Publication/list/intro

4. Template:Publication/list/outro


Please help me out to resolve the issue as its very annoying.


Thanks in Adv. Sanjay

Thanks for posting. Now create the respective templates and pages on this wiki for us to see. Thanks again. --[[kgh]] (discussion) 10 août 2016 à 15:37 (CEST)
I have created the page : http://sandbox.semantic-mediawiki.org/wiki/SEA:Internal after creating all the above Templates. Please check.
Great, could you also add some explanatory data sets so we can see what the query actually does? --[[kgh]] (discussion) 11 août 2016 à 15:54 (CEST)
  • The Parser function #ask should return the below table of contents usually.
AuthorsPublishedTitle
Brocksanck, Lynco2014Fault seal evaluation, Beaujolais prospect, North Sea
Brocksanck2014A simple tool for calculating and converting pressure gradients in different units
  • But now it displayed as below in the table of contents.
AuthorsPublishedTitle
shortname::User:Pbroc, shortname::User:Kebl2014Fault seal evaluation, Beaujolais prospect, North Sea
shortname::User:pbroc2014A simple tool for calculating and converting pressure gradients in different units

And the problem is the shortnames of authors are not resolving to their full names as in above table of contents.

... shortname::User:Pbroc ... and therein lies the problem, just don't assume that we know how those data look on your system (wiki) hence our repeated request that you create your data in a way we can actually see what's wrong, pasting HTML doesn't bring any enlightenment. --Mwjames (discussion) 11 août 2016 à 16:49 (CEST)
I have created the above couple of tables to convey the problem type. Actualy the tabular format data is auto formed in my WIKI with help of the semantic parser function. Also I don't have the complete idea how the Semantic internal data is displaying with help of the parser function #ask. So that I ask, if It could manage to display the Author names here?
": I just conveyed the problem here. Actually I don't have idea how the Semantic internal", actually you did not. The problem is not communicated by pasting HTML. We have ask to create pages that contain said annotations and then create the #ask as on your system to understand the issue and the output. The whole problem starts with how you create annotations and the sort of page names you use. Pasting something here will create no understanding about the issue at hand.
Templates are not data, data are those pages that contain something like [[This is a::Annotation]] which can later be queried using {{#ask: [[This is a::+]] }}.

I have created the page : http://sandbox.semantic-mediawiki.org/wiki/SEA:Internal. It uses all the above 4 templates that I have already created. The page reflects same data what is with the above HTML table. Could you refer the page code and let me know if you need any further page that is required to be created ? and could you say how to find the data for the annotations used inside the page code?

Please have a look at How to create a quality example (and subsequent pages) with this I tried to be accommodating in terms of "Could you refer the page code and let me know if you need any further page that is required to be created", if this still doesn't explain what we expect then I think we are running out of examples.--Mwjames (discussion) 12 août 2016 à 16:27 (CEST)
* Create page(s) with your data
* Create possible template output formatter
* Create queries that represent your data
I got the all above 3 types that is required to get querifying the data and represented either by using the template or simple table. I have created the required template pages but I see there are several data pages that links each other. Still I am in confuse that how the table got the data? Are these the values from serverl pages those uses the property tag ? Could you please clarify in this regards?
[0] may prove helpful to understand how annotations [[SomeProperty::WithSomeValue]] need to be created first before one can apply a query request. [1] contains other pointers as well.
[0] https://www.youtube.com/watch?v=1CaNJLsAI2A
[1] https://www.semantic-mediawiki.org/wiki/Getting_started

In below Property page the author names/userid couldn't resolved and displaying Property::value pairs as it is for the upgraded SMW version 2.3[modifier le wikicode]

For the more into the clarificaiton, You could see below are the property pages under both the versions of SMW 1.8 and 2.3 displayed accordingly. Here, the author names are not resolving and it's just displaying the property types and its corresponding values the page !. Could you suggest any solution for the issue?


PA21.PNG
PA25.PNG
I'm still amiss on how your actually data input look like (showing the screenshot doesn't explain how the data are entered) therefore I'm speculating that you use some kind of [[Foo::Bar::Foobar]] syntax which was made strict be default. You may want to set $GLOBALS['smwgEnabledInTextAnnotationParserStrictMode'] = false; [0, 1].
[0] https://www.semantic-mediawiki.org/wiki/Help:$smwgEnabledInTextAnnotationParserStrictMode
[1] https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/1252
As suggested I have added $GLOBALS['smwgEnabledInTextAnnotationParserStrictMode'] = false; in 'SemanticMediaWiki.settings.php'.

After update the line of code, I ran below maintenace scripts and restarted apache server. But I could see there is no change in the multilevel inline query and still it's displaying the Property name and corresponding values. Please suggest if I missed somewhere.

# php wiki/extensions/SemanticMediaWiki/maintenance/rebuildPropertyStatistics.php
# php wiki/maintenance/runJobs.php
If you use SMW 2.4.1 then 'SemanticMediaWiki.settings.php' doesn't exist (it was renamed DefaultSettings.php) and besides that you should never edit settings in an extension instead you are expected to modify that in your LocalSettings.php [0].
I need to know how the Author property is annotated (means how the value is added) on one of the listed items (e.g 1986 Hermanrud .... ) to being able to see (not as screen shot) the issue at hand.
[0] https://www.mediawiki.org/wiki/Manual:LocalSettings.php
Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.