Re: [SMW-devel] parse SMW-properties inside tag function
Great, that was exactly what I need. Thanks a lot. Marcelo. 2013/7/9 Yury Katkov katkov.ju...@gmail.com Hi Marcello! Please point to the example you're talking about so that I have more context. Anyway if you want to have fullURL of the given name of the wikipage you should probably use the functions from Title object, for example getFullURL(). You can get the Title object from the $frame I guess. - Yury Katkov, WikiVote On Tue, Jul 9, 2013 at 10:54 PM, Marcelo Chiaradía chiaradiamarc...@gmail.com wrote: Hi Yury, Im trying to accomplish something like you did. I have this string [[my_page]], and following your example, I'm trying to get the wikitext for its pagelink, like this: $str = [[My_Page]]; $str = $parser-replaceVariables($str,$frame); but after this, $str = [[My_Page]], instead of http://SERVER/index.php/My_Page, as I was expected. And Im doing something wrong? thanks in advance, Marcelo. -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
[SMW-devel] What is the way to import Enum concepts from external ontologies?
Hello everybody, well, the title says it everything I think. What is the way to import Enum concepts from external ontologies? I know theres is the import vocabulary feature, but It says that only apply to import external properties, by taggin a property page with [[imported from::external_namespace:external_property]] However, I tried in my wiki to used the same tag in non-property (like a regular page) pages, and It works just fine. I used this trick to import enum external concepts to match with my pages. Is this a good way to do this or there's a better way? Another question, As it is said in the page import vocabualry ( https://semantic-mediawiki.org/wiki/Help:Import_vocabulary), you have to make the vocabulary available for import. I wanted to import the foaf:knows property, like this: http://xmlns.com/foaf/0.1/|[http://www.foaf-project.org/ Friend Of A Friend] knows|Type:Page but when I go to my property page tagged with [[imported from::foaf:knows]], it says that the type is missing. I though the type was automatically setted. Could you tell me why this happens, please? Cheers and thanks a lot in avance, Marcelo. -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] How to export pages into the semantic web?
Hi John, thanks a lot for your answer. The reason I thought to put the external terms in another namespace, is that I dont want them to be normal pages. Moreover, I could have some real pages in my wiki with the same name that the imported terms, and conceptually, they wouldnt mean the same thing, so I need to define them in a separate namespace. (maybe this is not a good practice, I dont know for sure. Maybe someone with more experience could give a thought) Regarding the exporting RDF feature, I think it could automatically export the external terms, if I use the property equivalent URI in every page that represents an imported term. ( http://semantic-mediawiki.org/wiki/Help:Special_property_Equivalent_URI) . Again, I dont know for sure if this is meant to be used like this. What do you think? Cheers, Marcelo. 2013/4/28 Marcelo Chiaradía chiaradiamarc...@gmail.com Any tip about this would be much appreciated. Marcelo 2013/4/25 Marcelo Chiaradía chiaradiamarc...@gmail.com Hello everyone, Im trying to import some external vocabulary into my wiki (for examples, thesauri terms, dublin core properties, etc). I need it because I want my pages to be exported into the semantic web, thorugh the Export RDF feature. Importing known vocabularies will allow me to acomplish this in a more massive way I think, cause I will be able to connect some of my pages to external resources through the imported vocabularies. Moreover, I dont want the imported terms will be considered as pages into my wiki. They represent just external terms. So I defined a new External_term namespace for them. So for each term imported I defined an External_term page for it. And for every property imported, I just tag my property page with the equivalent tag. I want to know if Im taking the right approach to expose my pages into the semantic web. Thanks in advance, Marcelo. -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] How to export pages into the semantic web?
Any tip about this would be much appreciated. Marcelo 2013/4/25 Marcelo Chiaradía chiaradiamarc...@gmail.com Hello everyone, Im trying to import some external vocabulary into my wiki (for examples, thesauri terms, dublin core properties, etc). I need it because I want my pages to be exported into the semantic web, thorugh the Export RDF feature. Importing known vocabularies will allow me to acomplish this in a more massive way I think, cause I will be able to connect some of my pages to external resources through the imported vocabularies. Moreover, I dont want the imported terms will be considered as pages into my wiki. They represent just external terms. So I defined a new External_term namespace for them. So for each term imported I defined an External_term page for it. And for every property imported, I just tag my property page with the equivalent tag. I want to know if Im taking the right approach to expose my pages into the semantic web. Thanks in advance, Marcelo. -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
[SMW-devel] How to export pages into the semantic web?
Hello everyone, Im trying to import some external vocabulary into my wiki (for examples, thesauri terms, dublin core properties, etc). I need it because I want my pages to be exported into the semantic web, thorugh the Export RDF feature. Importing known vocabularies will allow me to acomplish this in a more massive way I think, cause I will be able to connect some of my pages to external resources through the imported vocabularies. Moreover, I dont want the imported terms will be considered as pages into my wiki. They represent just external terms. So I defined a new External_term namespace for them. So for each term imported I defined an External_term page for it. And for every property imported, I just tag my property page with the equivalent tag. I want to know if Im taking the right approach to expose my pages into the semantic web. Thanks in advance, Marcelo. -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] [SIO] Querying internal object properties
Yeah, I know. I've been checking the Semantic Extra Special Properties extension, but it only solves half of my problem. This is my situation: I need to save somehow the author that made a contribution to a page, and somehow classify it regarding the information modified by him. First I thought an easy solution including a checkbox in the semantic form for the classification problem (like is minor edit), but it looks a lot more complex. So now Im considering the develop of my own extension to semantify this information, following the Semantic Extra Special Properties and s13n approach. I guess there's no easier way to do it, rigth? Cheers, Marcelo. 2013/4/21 Yaron Koren ya...@wikiworks.com Hi, This seems like a bad hack. I assume this is part of your effort to have the page store the usernames of all its contributors? If so, the Semantic Extra Special Properties extension may be the better approach - I believe it stores that information using the Page author property: https://www.mediawiki.org/wiki/Extension:Semantic_Extra_Special_Properties -Yaron On Sat, Apr 20, 2013 at 3:05 PM, Marcelo Chiaradía chiaradiamarc...@gmail.com wrote: Hi everyone, I have saved an internal object which has several properties: {{#set_internal:isInternalObjectOf |property1=value1 |property2=value2 |name=object_name }} I have a situation where eventually I need to define a new internal object using the properties of the object saved before as values. The way I found to do this is through semantic queries: {{#set_internal:isInternalObjectOf |property1={{#ask: [[-property1::[[name::object_name]] ]]}} |property2={{#ask: [[-property2::[[name::object_name]] ]]}} }} The sintax may be not quite correct, just to show the idea. The problem with this approach is that for every property, I have to make a new query. Is there some way to do this with only one query? Thanks in advance. Marcelo. -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter ___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel -- WikiWorks · MediaWiki Consulting · http://wikiworks.com -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] [SIO] Querying internal object properties
Hi Yaron and Yury. I was just about to point that. Moreover, I could, for example, importing foaf vocabulary to define the user pages, so I could make the wiki articles available in a more massive way through linked open data, with the export rdf feature. I believe this can only be done if there's a semantic realtionship defined. (correct me if im wrong please). Yury, I meant something like this: let's suppose I have a page, and I can difference two or more types of contents within it (for example, content itself, and metadata or something like that). So in every revision, I could say this revision was for content only, or this revision was for metadata only. I'll give a check to those links, thanks a lot. Marcelo. 2013/4/21 Yury Katkov katkov.ju...@gmail.com To Yaron: The whole point of a wiki is to be able to collaboratively create content, where it doesn't really matter who added what. I would say that this is very dogmatic point of view. That's not always true. Just to name a few, knowing the authorship can boost the author's motivation, it can help you to figure out the one's usefulness and reputation. I think that all the wikis presented today disregard the question of the authorship not because of the original wiki philosophy but because of inertia of thinking. To Marcelo: What do you mean by classify the contribution? I've once done a simple extension CollaborationDiagram [1] that visualizes the contributions of the authors of the wikipage do you want to do anything similar? There was a great project of analyzing contributions called WikiTrust: they have measured the quality of an edit based on how much time did this edit existed without being replaced/roll-backed. They have also measured the reputation of the authors of the wikis [2]. Also why do you need the data in semantic format? Maybe it would be easier to just count the data in PHP? [1] http://www.mediawiki.org/wiki/Extension:CollaborationDiagram [2] http://www.wikitrust.net/ - Yury Katkov, WikiVote On Sun, Apr 21, 2013 at 9:15 PM, Yaron Koren ya...@wikiworks.com wrote: The more relevant question, to me, is *why* you would want to do any of this. The whole point of a wiki is to be able to collaboratively create content, where it doesn't really matter who added what. So why you need to query on this data? On Sun, Apr 21, 2013 at 1:03 PM, Marcelo Chiaradía chiaradiamarc...@gmail.com wrote: Yeah, I know. I've been checking the Semantic Extra Special Properties extension, but it only solves half of my problem. This is my situation: I need to save somehow the author that made a contribution to a page, and somehow classify it regarding the information modified by him. First I thought an easy solution including a checkbox in the semantic form for the classification problem (like is minor edit), but it looks a lot more complex. So now Im considering the develop of my own extension to semantify this information, following the Semantic Extra Special Properties and s13n approach. I guess there's no easier way to do it, rigth? Cheers, Marcelo. 2013/4/21 Yaron Koren ya...@wikiworks.com Hi, This seems like a bad hack. I assume this is part of your effort to have the page store the usernames of all its contributors? If so, the Semantic Extra Special Properties extension may be the better approach - I believe it stores that information using the Page author property: https://www.mediawiki.org/wiki/Extension:Semantic_Extra_Special_Properties -Yaron On Sat, Apr 20, 2013 at 3:05 PM, Marcelo Chiaradía chiaradiamarc...@gmail.com wrote: Hi everyone, I have saved an internal object which has several properties: {{#set_internal:isInternalObjectOf |property1=value1 |property2=value2 |name=object_name }} I have a situation where eventually I need to define a new internal object using the properties of the object saved before as values. The way I found to do this is through semantic queries: {{#set_internal:isInternalObjectOf |property1={{#ask: [[-property1::[[name::object_name]] ]]}} |property2={{#ask: [[-property2::[[name::object_name]] ]]}} }} The sintax may be not quite correct, just to show the idea. The problem with this approach is that for every property, I have to make a new query. Is there some way to do this with only one query? Thanks in advance. Marcelo. -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter ___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists
[SMW-devel] [SIO] Querying internal object properties
Hi everyone, I have saved an internal object which has several properties: {{#set_internal:isInternalObjectOf |property1=value1 |property2=value2 |name=object_name }} I have a situation where eventually I need to define a new internal object using the properties of the object saved before as values. The way I found to do this is through semantic queries: {{#set_internal:isInternalObjectOf |property1={{#ask: [[-property1::[[name::object_name]] ]]}} |property2={{#ask: [[-property2::[[name::object_name]] ]]}} }} The sintax may be not quite correct, just to show the idea. The problem with this approach is that for every property, I have to make a new query. Is there some way to do this with only one query? Thanks in advance. Marcelo. -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] [SF] - Defining properties for user editor
Any help about this? 2013/4/18 Marcelo Chiaradía chiaradiamarc...@gmail.com Hello everybody, I have the following situation: I've defined a semantic form to edit pages within a particular category. Anytime a user edit my pages with the semantic form, I would like to add a semantic property to the page, which relates the page with the user who made the edition. Something like [[userEditor::CURRENTUSER]] The thing is that I would like to keep record of all the user that edit the page. I mean, my page could have several userEditor relationships then. Morover, I have my SF separated in two main sections using the Header Tab extension. I need to use different properties to relate the user editor, regarding the tab that made the edition. For example, if the user edited the page through tab 1, then I should use userEditor_Tab_1. If tab 2, userEditor_Tab_2. I've been looking through a the smw and mediawiki extensions, and thinking a lot about how to do it, but can't find a way. I read about SemanticExtraSpecialProperties EUSER feature, but it solves the problem partially. Any ideas will be much appreciated. I'm going crazy trying to solve it. thanks in advance, Marcelo. -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
[SMW-devel] [SF] - Defining properties for user editor
Hello everybody, I have the following situation: I've defined a semantic form to edit pages within a particular category. Anytime a user edit my pages with the semantic form, I would like to add a semantic property to the page, which relates the page with the user who made the edition. Something like [[userEditor::CURRENTUSER]] The thing is that I would like to keep record of all the user that edit the page. I mean, my page could have several userEditor relationships then. Morover, I have my SF separated in two main sections using the Header Tab extension. I need to use different properties to relate the user editor, regarding the tab that made the edition. For example, if the user edited the page through tab 1, then I should use userEditor_Tab_1. If tab 2, userEditor_Tab_2. I've been looking through a the smw and mediawiki extensions, and thinking a lot about how to do it, but can't find a way. I read about SemanticExtraSpecialProperties EUSER feature, but it solves the problem partially. Any ideas will be much appreciated. I'm going crazy trying to solve it. thanks in advance, Marcelo. -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
[SMW-devel] Help to import thesauri vocabulary
Hello everyone, I need to import some terms of a taxanomy or thesaurus into my semantic wiki. I mean, like a page in my wiki point to a concept in thesaurus/taxonomy. I have been reading the documentation about importing vocabulary ( http://semantic-mediawiki.org/wiki/Help:Import_vocabulary), and i did a couple of tests importing some foaf properties and classes, but I couldn't import the concepts forma thesaurus. Is this possible? Is there some example of how to do this? In case it is possible, suppose I want to import a whole taxonomy. I was thinking about creating a hierarchical tree of categories and sub-categories, to refer every concept in the hierarchy of the taxonomy. Does anyone already done something like this? Thanks in advance, Marcelo. -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] SIO - Having trouble querying Semantic Internal Objects
One question about this: is there some way to defined the inverse property? I mean, from the page to the internal objects. I need this, so when exporting my page to RDF, the property points from page to internal objects. Thanks in advance, Marcelo. 2012/11/11 Marcelo Chiaradía chiaradiamarc...@gmail.com Thanks a lot. I just read the documentation about inverse properties. Marcelo. 2012/11/11 Yaron Koren ya...@wikiworks.com Hi Marcelo, To do that kind of query, I think you could do something like {{#ask[[-HasAnInternalObject.att1::SomeValue]]}}. Note the - in there. -Yaron -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] [SIO] problem when exporting to RDF
Any help on this please? 2012/11/12 Marcelo Chiaradía chiaradiamarc...@gmail.com Im using SMW version 1.7.1 2012/11/12 Yaron Koren ya...@wikiworks.com Hi Marcelo, 1.19 sounds like your MediaWiki version - what version of SMW are you using? -Yaron On Mon, Nov 12, 2012 at 6:10 PM, Marcelo Chiaradía chiaradiamarc...@gmail.com wrote: The error I get in php is this: br / bCatchable fatal error/b: Argument 1 passed to SMWSemanticData::__construct() must be an instance of SMWDIWikiPage, instance of SIOInternalObjectValue given, called in C:\xampp\htdocs\mediawiki-1.19.1\extensions\SemanticInternalObjects\SemanticInternalObjects_body.php on line 210 and defined in b C:\xampp\htdocs\mediawiki-1.19.1\extensions\SemanticMediaWiki\includes\SMW_SemanticData.php /b on line b103/bbr / 2012/11/12 Marcelo Chiaradía chiaradiamarc...@gmail.com Hello, Im using the extension Semantic Internal Objects, version 0.6.8, and my SMW version is 1.19 When importing to RDF a page which has an internal object, it takes me to a screen that says: This page contains the following errors: error on line 2 at column 1: Extra content at the end of the document Below is a rendering of the page up to the first error. Is this a known bug? what can I do to fix this problem? Thanks a lot, Marcelo. -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel -- WikiWorks · MediaWiki Consulting · http://wikiworks.com -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] [SIO] problem when exporting to RDF
Well, the problem was that it was printing in the XML the php error. I mean this (Note the br's): br / bCatchable fatal error/b: Argument 1 passed to SMWSemanticData::__construct() must be an instance of SMWDIWikiPage, instance of SIOInternalObjectValue given, called in C:\xampp\htdocs\mediawiki-1.19.1\extensions\SemanticInternalObjects\SemanticInternalObjects_body.php on line 210 and defined in b C:\xampp\htdocs\mediawiki-1.19.1\extensions\SemanticMediaWiki\includes\SMW_SemanticData.php /b on line b103/bbr / So i guess it is a problem of the PHP code. 2012/11/14 Yaron Koren ya...@wikiworks.com Hi Marcelo, Sorry, I haven't looked at the RDF export thing in a while. My guess is that it's a bug, unfortunately. Is it possible for you to tell what the faulty XML is in the output? -Yaron On Wed, Nov 14, 2012 at 8:46 AM, Marcelo Chiaradía chiaradiamarc...@gmail.com wrote: Any help on this please? 2012/11/12 Marcelo Chiaradía chiaradiamarc...@gmail.com Im using SMW version 1.7.1 2012/11/12 Yaron Koren ya...@wikiworks.com Hi Marcelo, 1.19 sounds like your MediaWiki version - what version of SMW are you using? -Yaron On Mon, Nov 12, 2012 at 6:10 PM, Marcelo Chiaradía chiaradiamarc...@gmail.com wrote: The error I get in php is this: br / bCatchable fatal error/b: Argument 1 passed to SMWSemanticData::__construct() must be an instance of SMWDIWikiPage, instance of SIOInternalObjectValue given, called in C:\xampp\htdocs\mediawiki-1.19.1\extensions\SemanticInternalObjects\SemanticInternalObjects_body.php on line 210 and defined in b C:\xampp\htdocs\mediawiki-1.19.1\extensions\SemanticMediaWiki\includes\SMW_SemanticData.php /b on line b103/bbr / 2012/11/12 Marcelo Chiaradía chiaradiamarc...@gmail.com Hello, Im using the extension Semantic Internal Objects, version 0.6.8, and my SMW version is 1.19 When importing to RDF a page which has an internal object, it takes me to a screen that says: This page contains the following errors: error on line 2 at column 1: Extra content at the end of the document Below is a rendering of the page up to the first error. Is this a known bug? what can I do to fix this problem? Thanks a lot, Marcelo. -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel -- WikiWorks · MediaWiki Consulting · http://wikiworks.com -- WikiWorks · MediaWiki Consulting · http://wikiworks.com -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] [SIO] problem when exporting to RDF
The error I get in php is this: br /bCatchable fatal error/b: Argument 1 passed to SMWSemanticData::__construct() must be an instance of SMWDIWikiPage, instance of SIOInternalObjectValue given, called in C:\xampp\htdocs\mediawiki-1.19.1\extensions\SemanticInternalObjects\SemanticInternalObjects_body.php on line 210 and defined in b C:\xampp\htdocs\mediawiki-1.19.1\extensions\SemanticMediaWiki\includes\SMW_SemanticData.php /b on line b103/bbr / 2012/11/12 Marcelo Chiaradía chiaradiamarc...@gmail.com Hello, Im using the extension Semantic Internal Objects, version 0.6.8, and my SMW version is 1.19 When importing to RDF a page which has an internal object, it takes me to a screen that says: This page contains the following errors: error on line 2 at column 1: Extra content at the end of the document Below is a rendering of the page up to the first error. Is this a known bug? what can I do to fix this problem? Thanks a lot, Marcelo. -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] [SIO] problem when exporting to RDF
Im using SMW version 1.7.1 2012/11/12 Yaron Koren ya...@wikiworks.com Hi Marcelo, 1.19 sounds like your MediaWiki version - what version of SMW are you using? -Yaron On Mon, Nov 12, 2012 at 6:10 PM, Marcelo Chiaradía chiaradiamarc...@gmail.com wrote: The error I get in php is this: br / bCatchable fatal error/b: Argument 1 passed to SMWSemanticData::__construct() must be an instance of SMWDIWikiPage, instance of SIOInternalObjectValue given, called in C:\xampp\htdocs\mediawiki-1.19.1\extensions\SemanticInternalObjects\SemanticInternalObjects_body.php on line 210 and defined in b C:\xampp\htdocs\mediawiki-1.19.1\extensions\SemanticMediaWiki\includes\SMW_SemanticData.php /b on line b103/bbr / 2012/11/12 Marcelo Chiaradía chiaradiamarc...@gmail.com Hello, Im using the extension Semantic Internal Objects, version 0.6.8, and my SMW version is 1.19 When importing to RDF a page which has an internal object, it takes me to a screen that says: This page contains the following errors: error on line 2 at column 1: Extra content at the end of the document Below is a rendering of the page up to the first error. Is this a known bug? what can I do to fix this problem? Thanks a lot, Marcelo. -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel -- WikiWorks · MediaWiki Consulting · http://wikiworks.com -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] SIO - Having trouble querying Semantic Internal Objects
Thanks a lot. I just read the documentation about inverse properties. Marcelo. 2012/11/11 Yaron Koren ya...@wikiworks.com Hi Marcelo, To do that kind of query, I think you could do something like {{#ask[[-HasAnInternalObject.att1::SomeValue]]}}. Note the - in there. -Yaron -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] SIO - Having trouble querying Semantic Internal Objects
Hi Yaron, I finally discover what was wrong. It seems that if you defined your the property in the #set_internal:, and you start it with a lower case, and you create the property after that, for some reason the property created start with an upper case, and the semantic search doesn't retrieve any result. To make it work I just replace #set_internal:hasAnInternalObject by #set_internal:HasAnInternalObject, and it works perfectly now. Now I have another question about queries: is there some way to query some information about my page, based in its internal object attributes? I mean, cause the relationship goes from the internal object to the page, and not in the inverse order. I would like to query all the pages that have an internal object, which has an attribute att1, for example. Thanks in advacne, Marcelo. 2012/11/9 Marcelo Chiaradía chiaradiamarc...@gmail.com Hi Yaron, thanks a lot for your answer. The full query is {{#ask: [[hasAnInternalObject::+]] |?language }} hasAnInternalObject is defined as property of type Page. I have check my databse, and indeed my internal object exists, and it has a relationship with my page.( smw_rels2 table) The weird thing is that when querying for the language property, I get the internal object as result, so it must exist. I use this query for that: {{#ask: [[language::English]] |?language }} Thanks a lot in advance, Marcelo. 2012/11/9 Yaron Koren ya...@wikiworks.com Hi Marcelo, Yes, the first property goes from the internal object to the page - which means that hasAnInternalObject is not an ideal name for it. but nonetheless that query should work. Two questions: - What is the full query you're calling? Maybe there's an error in the syntax. - Is hasAnInternalObject defined as a property of type Page? -Yaron On Thu, Nov 8, 2012 at 9:22 PM, Marcelo Chiaradía chiaradiamarc...@gmail.com wrote: Hello everyone, Im using the semantic media wiki, with the Semantic Internal Objects extension, version 0.6.8. In one of my pages I have a template, that receives several parameters, and the create an internal object with a hasAnInternalObject property. This is my template: noinclude This is the MyTemplate template. It should be called in the following format: pre {{MyTemplate |Language= |Keywords= }} /pre Edit the page to see the template text. /noincludeincludeonly {{#set_internal:hasAnInternalObject |language={{{Language|}}} |keyword#list={{{Keywords}}} }} /includeonly I can see in my Database that it creates a hasInternalObject relationship from the internal object to the page that defines it. (I supposed that this was gonna be from the page to the internal object, but it wasn`t). Now I would like to query all my internal objects defined like before, but I get no results. The query i used for this is [[hasAnInternalObject::+]] Any help? Thanks in advance, Marcelo. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov ___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel -- WikiWorks · MediaWiki Consulting · http://wikiworks.com -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] SIO - Having trouble querying Semantic Internal Objects
Hi Yaron, thanks a lot for your answer. The full query is {{#ask: [[hasAnInternalObject::+]] |?language }} hasAnInternalObject is defined as property of type Page. I have check my databse, and indeed my internal object exists, and it has a relationship with my page.( smw_rels2 table) The weird thing is that when querying for the language property, I get the internal object as result, so it must exist. I use this query for that: {{#ask: [[language::English]] |?language }} Thanks a lot in advance, Marcelo. 2012/11/9 Yaron Koren ya...@wikiworks.com Hi Marcelo, Yes, the first property goes from the internal object to the page - which means that hasAnInternalObject is not an ideal name for it. but nonetheless that query should work. Two questions: - What is the full query you're calling? Maybe there's an error in the syntax. - Is hasAnInternalObject defined as a property of type Page? -Yaron On Thu, Nov 8, 2012 at 9:22 PM, Marcelo Chiaradía chiaradiamarc...@gmail.com wrote: Hello everyone, Im using the semantic media wiki, with the Semantic Internal Objects extension, version 0.6.8. In one of my pages I have a template, that receives several parameters, and the create an internal object with a hasAnInternalObject property. This is my template: noinclude This is the MyTemplate template. It should be called in the following format: pre {{MyTemplate |Language= |Keywords= }} /pre Edit the page to see the template text. /noincludeincludeonly {{#set_internal:hasAnInternalObject |language={{{Language|}}} |keyword#list={{{Keywords}}} }} /includeonly I can see in my Database that it creates a hasInternalObject relationship from the internal object to the page that defines it. (I supposed that this was gonna be from the page to the internal object, but it wasn`t). Now I would like to query all my internal objects defined like before, but I get no results. The query i used for this is [[hasAnInternalObject::+]] Any help? Thanks in advance, Marcelo. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov ___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel -- WikiWorks · MediaWiki Consulting · http://wikiworks.com -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] Help with ask queries - using intermediate results
Thanks a lot for your answer. By the way, is there any extension needed to run sub-queries? Marcelo. 2012/11/9 Markus Krötzsch mar...@semantic-mediawiki.org On 09/11/12 09:37, Yury Katkov wrote: Well you can also use template format if you don't like subqueries... It would also help you to use the intermediate results. That would let you see the intermediate results (otherwise, there is no way to find out which of, say, the has C values was responsible for having a line in the result). If you really need this, and the information cannot be retrieved later (e.g. if you know that there is only one has C on any page anyway), then templates might help. However, using templates with queries to format other queries is generally a bad approach that is extremely inefficient and will use a lot of memory and CPU to display a page (results are fetched from the database, rendered as wikitext, re-parsed as queries, which are used to fetch more results, ...); it will only work at all of your inner results are very limited in number. Markus On Wed, Nov 7, 2012 at 5:44 PM, Marcelo Chiaradía chiaradiamarc...@gmail.com mailto:chiaradiamarcelo@**gmail.comchiaradiamarc...@gmail.com wrote: Hi everyone, I'm trying to make an #ask query, using intermediates results to do more queries within. I have this scenario: I have several pages of a category A. Some of them are related to other pages of category B, through a has B property. Then, my B pages are related to pages of category C, through has C property, and finally my C pages have an attribute att1, through has att1 property, wich has defined a specific set of values. I would like to make an ask query, asking for all my A pages, whose must have at least one B page, which must have at least one C page, and which must have the att1 = SOME_VALUE, where some value should be a parameter. I read about subqueries, doing something like: {{#ask: [[Category::A]] [[has B::q[[Category::B]] [[has C:: q[[Category::C]] [[has att1::{{SOME_VALUE}}]]/q]] /q]] |?att1 }} Is this the right way to do this? is there a more elegant way? One other thing, I would like that if the user doesn't complete the SOME_VALUE parameter, then return all the pages of category A. I tried this with the + and * characters, but didnt work. How is the best way to achieve this? Thanks a lot in advance, Marcelo. --**--** -- LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/**logmein12331_d2dhttp://p.sf.net/sfu/logmein12331_d2d __**_ Semediawiki-devel mailing list Semediawiki-devel@lists.**sourceforge.netSemediawiki-devel@lists.sourceforge.net mailto:Semediawiki-devel@**lists.sourceforge.netSemediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/**lists/listinfo/semediawiki-**develhttps://lists.sourceforge.net/lists/listinfo/semediawiki-devel --**--** -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_**d2d_nov http://p.sf.net/sfu/appdyn_d2d_nov __**_ Semediawiki-devel mailing list Semediawiki-devel@lists.**sourceforge.netSemediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/**lists/listinfo/semediawiki-**develhttps://lists.sourceforge.net/lists/listinfo/semediawiki-devel -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
[SMW-devel] Semantic forms- using taxanomies or theasurus
Hello everyone, Im using the semantic forms extention, and I need that one of my fields should only be filled with the values of a taxonomy defined by me. I know that the setting the tag values from in my field, trigger the autocomplete. I have seen the extension Taxanomy, that lets me create a taxonomy, the attribute values from = MY_TAXONOMY_NAME doesnt seems to work (which is reasonable and expected). Other posibility i thought about is to create a thesaurus in the web, that would hold my taxonomy terms, and accessing it through the autocomplete feature. My final goal would be somehow integrate my wiki pages to the semantic web through some semantic property, so I would go for the thesaurus idea. Do you know if there's any extention to achieve something like this? Thanks in advance, Marcelo. -- LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
[SMW-devel] How to create pre-defined ASK queries?
Hello everyone, Im in need of this feature for my SMW: I need to create some pre-defined semantic queries, using ASK. For example, a page that shows an input text, to introduce a page name, and an execute button, so when it's pressed it would execute an ask query with the page name in the input as parameter. And * *I would like show them in the Special pages page as a new item , like My predfined queries. Is this somehow possible? Many thanks in advance, Marcelo. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
[SMW-devel] Question about generated code with semantic forms
Hello, I have question about the code generated by the semantic form once you press Save. It seems that all the templates I use in the semantic form appear before in the code page than the free text. Something like {{ {{template1|...}} {{template2|...}} {{template3|...}} }} Free text My question is: is there some way to define the semantic form, so one of my templates would appear at the bottom of my page (after the free text)? Something like: {{ {{template1|...}} {{template2|...}} }} Free text {{template3|...}} Thanks in advance, Marcelo. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] Database question
Thanks a lot. Marcelo. 2012/7/1 Yaron Koren ya...@wikiworks.com Hi, Try replacing {{{ClassificationList|No Instances}}} with {{#if:{{{ClassificationList|}}}||No Instances}} . -Yaron -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] Database question
Hi Yaron, I've been looking at the page you pointed me. Im having some difficulties to do it. Maybe it is something worng in my code. I have a main template call Relations, which must have inside of him several instances of another template called Relation. The code of Relation is this: noinclude Este es la plantilla 'Relation'. Debe ser llamada en el siguiente formato: pre {{Relation |Kind= |Identifier= |Description= }} /pre Editar la página para ver el texto de la plantilla. /noincludeincludeonly {| style=width: 30em; font-size: 90%; border: 1px solid #aa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left; ! style=text-align: center; background-color:#ff; colspan=2 |bigRelation/big |- ! Kind |{{{Kind}}} |- ! Identifier |[[{{{Identifier}}}]] |- ! Description |{{{Description}}} |} {{#set_internal:hasCategory |Lom Relation kind={{{Kind|}}} |Lom Relation identifier={{{Identifier|}}} |Lom Relation description={{{Description|}}} }} /includeonly The code of Relations is this: noinclude Este es la plantilla 'Relations'. Debe ser llamada en el siguiente formato: pre {{Relations |Resource=={{Relation |Kind |Identifier |Description }} }} /pre Editar la página para ver el texto de la plantilla. /noincludeincludeonly {| style=width: 30em; font-size: 90%; border: 1px solid #aa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left; ! style=text-align: center; background-color:#ff; colspan=2 |bigRelations/big |- ! Relation | [[HasRelation::{{{Relation|}}}]] |} /includeonly And the code of my semantic form is this: noinclude Este es el formulario '' MyForm ''. Para crear una página con este formulario, ingrese el nombre de la página a continuación; si la página con ese nombre ya existe, será dirigido al formulario para editar esa página. {{#forminput:form=MyForm}} /noincludeincludeonly div id=wikiPreview style=display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AA;/div ==Relations== {{{for template|Relaciones}}} {{{field|Resource|holds template}}} {{{end template}}} {{{for template|Relation|multiple|embed in field=Relaciones[Resource]}}} {| class=formtable ! Kind: | {{{field|Kind}}} |- ! Identifier: | {{{field|Identifier}}} |- ! Description: | {{{field|Description}}} |} {{{end template}}} '''Texto libre:''' {{{standard input|free text|rows=10}}} {{{standard input|summary}}} {{{standard input|minor edit}}} {{{standard input|watch}}} {{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}} /includeonly Can you give me hand and tell me what am i doing wrong? Thanks in advance, Marcelo. 2012/6/29 Yaron Koren ya...@wikiworks.com Hi, Yes, you can do that via the embed in field and holds template parameters - see here: http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#Form_markup_language -Yaron On Fri, Jun 29, 2012 at 3:55 PM, Marcelo Chiaradía chiaradiamarc...@gmail.com wrote: Hi Yaron, Ok, I'll give it a try, thanks a lot. One other question, does the semantic forms extension support nested templates? For example, I have a template A, which must have several instances of a template B. I would like to complete the data for A, and create several instances of B within A, using only one semantic form. Is that possible? If so, can you point me to an example of how to do it? Thanks in advance, Marcelo. 2012/6/29 Yaron Koren ya...@wikiworks.com Hi Marcelo, If I understand your question correctly - I would strongly recommend using the Semantic Internal Objects extension to store the data in that multiple-instance template, instead of just regular SMW property tags: http://www.mediawiki.org/wiki/Extension:Semantic_Internal_Objects That will allow you to associate each set of data with its instance. -Yaron On Thu, Jun 28, 2012 at 9:48 PM, Marcelo Chiaradía chiaradiamarc...@gmail.com wrote: Hello everyone, I have a page that uses a semantic form. This semantic form allows to complete several instances of a same template I defined, I wanna know if there is some table in the wiki database, which relates each instance of the template which its field values. Thanks in advance, Marcelo. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo
Re: [SMW-devel] Database question
Im sorry, i wrote my semantic form code wrong, it is like this: And the code of my semantic form is this: noinclude Este es el formulario '' MyForm ''. Para crear una página con este formulario, ingrese el nombre de la página a continuación; si la página con ese nombre ya existe, será dirigido al formulario para editar esa página. {{#forminput:form=MyForm}} /noincludeincludeonly div id=wikiPreview style=display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AA;/div ==Relations== {{{for template|Relations}}} {{{field|Relation|holds template}}} {{{end template}}} {{{for template|Relation|multiple|embed in field=Relations[Relation]}}} {| class=formtable ! Kind: | {{{field|Kind}}} |- ! Identifier: | {{{field|Identifier}}} |- ! Description: | {{{field|Description}}} |} {{{end template}}} Hope someone can help me. I cant make it work. Regards, Marcelo. 2012/6/30 Marcelo Chiaradía chiaradiamarc...@gmail.com Hi Yaron, I've been looking at the page you pointed me. Im having some difficulties to do it. Maybe it is something worng in my code. I have a main template call Relations, which must have inside of him several instances of another template called Relation. The code of Relation is this: noinclude Este es la plantilla 'Relation'. Debe ser llamada en el siguiente formato: pre {{Relation |Kind= |Identifier= |Description= }} /pre Editar la página para ver el texto de la plantilla. /noincludeincludeonly {| style=width: 30em; font-size: 90%; border: 1px solid #aa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left; ! style=text-align: center; background-color:#ff; colspan=2 |bigRelation/big |- ! Kind |{{{Kind}}} |- ! Identifier |[[{{{Identifier}}}]] |- ! Description |{{{Description}}} |} {{#set_internal:hasCategory |Lom Relation kind={{{Kind|}}} |Lom Relation identifier={{{Identifier|}}} |Lom Relation description={{{Description|}}} }} /includeonly The code of Relations is this: noinclude Este es la plantilla 'Relations'. Debe ser llamada en el siguiente formato: pre {{Relations |Resource=={{Relation |Kind |Identifier |Description }} }} /pre Editar la página para ver el texto de la plantilla. /noincludeincludeonly {| style=width: 30em; font-size: 90%; border: 1px solid #aa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left; ! style=text-align: center; background-color:#ff; colspan=2 |bigRelations/big |- ! Relation | [[HasRelation::{{{Relation|}}}]] |} /includeonly And the code of my semantic form is this: noinclude Este es el formulario '' MyForm ''. Para crear una página con este formulario, ingrese el nombre de la página a continuación; si la página con ese nombre ya existe, será dirigido al formulario para editar esa página. {{#forminput:form=MyForm}} /noincludeincludeonly div id=wikiPreview style=display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AA;/div ==Relations== {{{for template|Relaciones}}} {{{field|Resource|holds template}}} {{{end template}}} {{{for template|Relation|multiple|embed in field=Relaciones[Resource]}}} {| class=formtable ! Kind: | {{{field|Kind}}} |- ! Identifier: | {{{field|Identifier}}} |- ! Description: | {{{field|Description}}} |} {{{end template}}} '''Texto libre:''' {{{standard input|free text|rows=10}}} {{{standard input|summary}}} {{{standard input|minor edit}}} {{{standard input|watch}}} {{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}} /includeonly Can you give me hand and tell me what am i doing wrong? Thanks in advance, Marcelo. 2012/6/29 Yaron Koren ya...@wikiworks.com Hi, Yes, you can do that via the embed in field and holds template parameters - see here: http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#Form_markup_language -Yaron On Fri, Jun 29, 2012 at 3:55 PM, Marcelo Chiaradía chiaradiamarc...@gmail.com wrote: Hi Yaron, Ok, I'll give it a try, thanks a lot. One other question, does the semantic forms extension support nested templates? For example, I have a template A, which must have several instances of a template B. I would like to complete the data for A, and create several instances of B within A, using only one semantic form. Is that possible? If so, can you point me to an example of how to do it? Thanks in advance, Marcelo. 2012/6/29 Yaron Koren ya...@wikiworks.com Hi Marcelo, If I understand your question correctly - I would strongly recommend using the Semantic Internal Objects extension to store the data in that multiple-instance template, instead of just regular SMW property tags: http://www.mediawiki.org/wiki
Re: [SMW-devel] problem with cmsort
Thanks Yaron 2012/4/16 Yaron Koren ya...@wikiworks.com Hi Marcelo, Is this related to Semantic MediaWiki? It seems like it's not - if not, you would be better off asking about it on the mediawiki-l mailing list: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l -Yaron On Mon, Apr 16, 2012 at 10:34 AM, Marcelo Chiaradía chiaradiamarc...@gmail.com wrote: Hello everyone, Im trying the mediawki API. I need to get the members of given category, ordered by timestamp, which are beetwen 2 given dates. for this, Im trying with an url like this: http://localhost/mediawiki-1.17.0/api.php?action=querygenerator=categorymembersgcmtitle=Category:MY_CATEGORYprop=infocmsort=timestampformat=jsoncmstart=13345853310cmend=1334585350cmdir=aschttp://localhost/mediawiki-1.17.0/api.php?action=querygenerator=categorymembersgcmtitle=Category:ObjetoDeAprendizajeprop=infocmsort=timestampformat=jsoncmstart=13345853310cmend=1334585350cmdir=asc and http://localhost/mediawiki-1.17.0/api.php?action=querygenerator=categorymembersgcmtitle=Category:ObjetoDeAprendizajeprop=infocmsort=timestampformat=jsoncmstart=2011-04-15T15:30:23Zcmend=http://localhost/mediawiki-1.17.0/api.php?action=querygenerator=categorymembersgcmtitle=Category:ObjetoDeAprendizajeprop=infocmsort=timestampformat=jsoncmstart=13345853310cmend=1334585350cmdir=asc 2012-04-15T15:30:23Zhttp://localhost/mediawiki-1.17.0/api.php?action=querygenerator=categorymembersgcmtitle=Category:ObjetoDeAprendizajeprop=infocmsort=timestampformat=jsoncmstart=13345853310cmend=1334585350cmdir=asccmdir=asc But none of them worked. Am i doing something wrong? Im going crazy with this. Regards, Marcelo. -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel -- WikiWorks · MediaWiki Consulting · http://wikiworks.com -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] is there a way to query field values in Semantic forms?
Yes, it does. But in that way i should do 2 HTTP requests, and due to I need to manage some great amounts of pages, It takes a lot of time. 2012/4/16 Jesse Wang wjxh...@gmail.com Let's see how can we add it, meanwhile, doesn't MW API support the page info you want? On Monday, April 16, 2012, Marcelo Chiaradía wrote: Hi Jesse, the WOM extension worked perfect for me, thanks a lot. The only trouble is that I can't get the page info with the WOMGET requests. Im trying to do something like api.php?action=womgetpage=MY_TITLExpath=//templateformat=jsonprop=info or api.php?action=womgetpage=MY_TITLExpath=//templateformat=jsonprop=pageprops But it seems the womget action doesn't support the prop parameter. Is there some way to get some page info in the same HTTP request? (I only need the creation date or the touched property) Regards, Marcelo. 2012/4/12 Jesse Wang wjxh...@gmail.com Marcelo, Please check out WOM extension: http://www.mediawiki.org/wiki/Extension:Wiki_Object_Model, I believe it should do what you want to and beyond. Please feel free to let us know what you think. Cheers, Jesse On Wed, Apr 11, 2012 at 1:27 PM, Marcelo Chiaradía chiaradiamarc...@gmail.com wrote: Hi everyone, I have a semantic media wiki installed, with the Semantic Forms extension. Im making a small php app, which has to get some data from mi wiki. Suppose I have a page, which has a category MyCategory, which can be edited by a semantic form call MySemanticForm, which use a template, which has many of fields. I need a way to get all the fields values of that template, for n specific page. Is some way to do that? I've been looking the mediawiki API (api.php), and I cant find a query that covers my needs. Thanks a lot, Marcelo. -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev ___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel -- Jesse Sent from my phone, please forgive any errors caused by touch and/or voice assistant -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
[SMW-devel] How to show template's names when editing with semantic forms?
Hi everyone, I have a semantic form associated with 3 templates, some of their fields have the same names. I was wondering if there's any way to show the template's name when editing a page with that form. Like a headline after the template's fields. Cause right now, when I edit a page with that form, it shows me all the fields of all the templates, and cause some of them have the same names, it's kind of confussing. Thanks in advance, Marcelo. -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] How to show template's names when editing with semanticforms?
Ok, thanks jhon, I will. But still, i would like to show the name of the template when editing a page with semantic forms. Is there some way to do that? Regards, Marcelo. 2012/4/13 John McClure jmccl...@hypergrove.com ** I recall bad experiences with same-named fields across templates in a form, and have resolved not to do that again. Try changing names if you can and see if that helps. John -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] is there a way to query field values in Semantic forms?
Hi Yaron, thanks for the quick answer. I found an extension of mediawiki called POM (Page_Object_Model), which I think will allow me to do what i need. Have you ever used it? Regards, Marcelo. 2012/4/11 Yaron Koren ya...@wikiworks.com Hi Marcelo, Unfortunately, no - there's very little that's provided as far as querying the data structure itself. -Yaron On Wed, Apr 11, 2012 at 4:27 PM, Marcelo Chiaradía chiaradiamarc...@gmail.com wrote: Hi everyone, I have a semantic media wiki installed, with the Semantic Forms extension. Im making a small php app, which has to get some data from mi wiki. Suppose I have a page, which has a category MyCategory, which can be edited by a semantic form call MySemanticForm, which use a template, which has many of fields. I need a way to get all the fields values of that template, for n specific page. Is some way to do that? I've been looking the mediawiki API (api.php), and I cant find a query that covers my needs. Thanks a lot, Marcelo. -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev ___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel -- WikiWorks · MediaWiki Consulting · http://wikiworks.com -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Re: [SMW-devel] is there a way to query field values in Semantic forms?
Thanks a lot Jesse, I'll give it a try. Cheers, Marcelo. 2012/4/12 Jesse Wang wjxh...@gmail.com Marcelo, Please check out WOM extension: http://www.mediawiki.org/wiki/Extension:Wiki_Object_Model, I believe it should do what you want to and beyond. Please feel free to let us know what you think. Cheers, Jesse On Wed, Apr 11, 2012 at 1:27 PM, Marcelo Chiaradía chiaradiamarc...@gmail.com wrote: Hi everyone, I have a semantic media wiki installed, with the Semantic Forms extension. Im making a small php app, which has to get some data from mi wiki. Suppose I have a page, which has a category MyCategory, which can be edited by a semantic form call MySemanticForm, which use a template, which has many of fields. I need a way to get all the fields values of that template, for n specific page. Is some way to do that? I've been looking the mediawiki API (api.php), and I cant find a query that covers my needs. Thanks a lot, Marcelo. -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev ___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2___ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel