[xwiki-users] How do I run a query from a rdf database in xwiki page

2010-08-17 Thread abrante

I am trying to run a query from one xwiki page but I could not, someone
please can sent me some code example? I want that the user only do click in
the link and the report must appear.

My query is the follow and I am working with velocity for the scripts

Thanks in advance :)

SELECT DISTINCT ?property ?hasValue ?isValueOf
WHERE {
  {
http://testforge.int-evry.fr/d2r-server/resource/bugsubmitters/6688a14521cd97db162af8f9757f2e2232300e50
?property ?hasValue
}
  UNION
  { ?isValueOf ?property
http://testforge.int-evry.fr/d2r-server/resource/bugsubmitters/6688a14521cd97db162af8f9757f2e2232300e50
}
}
ORDER BY (!BOUND(?hasValue)) ?property ?hasValue ?isValueOf  


-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/How-do-I-run-a-query-from-a-rdf-database-in-xwiki-page-tp5431016p5431016.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Problem building xWatch Code with Maven

2010-08-17 Thread Simerpreet Singh
Hi,

Please provide a resolution on issue i had posted yesterday regarding 
maven  build of xwatch.


Thank,
Simerpreet Singh



users-requ...@xwiki.org wrote:
 Send users mailing list submissions to
   users@xwiki.org

 To subscribe or unsubscribe via the World Wide Web, visit
   http://lists.xwiki.org/mailman/listinfo/users
 or, via email, send a message with subject or body 'help' to
   users-requ...@xwiki.org

 You can reach the person managing the list at
   users-ow...@xwiki.org

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of users digest...


 Today's Topics:

1. Problem building code for xwatch with maven (Simerpreet Singh)
2. Re: ldap-integration / Active Directory /   sAMAcountName
   (Dalluege, Pierre (extern))
3. Re: ldap-integration / Active Directory /   sAMAcountName
   (Thomas Mortagne)
4. R:  LightBox Macro does not work on XE 2.4 (Andrea Belli)
5. Re: R: LightBox Macro does not work on XE 2.4 (Thomas Mortagne)
6. question about Last modifications feed of a userwatchlist
   (Andrea Belli)
7. R: R: user name with stressed characters is encoded as XML
   entity (Andrea Belli)
8. Re: R: R: user name with stressed characters is encoded as
   XML entity (Alex Busenius)


 --

 Message: 1
 Date: Mon, 16 Aug 2010 15:58:07 +0530
 From: Simerpreet Singh simerpreet.si...@netsolutionsindia.com
 Subject: [xwiki-users] Problem building code for xwatch with maven
 To: users@xwiki.org
 Message-ID: 4c6912b7.1050...@netsolutionsindia.com
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed

 Hi,

 Iam using xwiki 2.3.1 and trying to install xwatch on in.According to 
 instructions given in
 http://watch.xwiki.org/xwiki/bin/view/Main/Installation#HBuildingandinstallinganXWikiWatchSnapshotoveranexistingXWikiEnterprise
  

 i downloaded code from svn http://svn.xwiki.org/svnroot/xwiki/watch/trunk/#
 but when i try to build it using following commands
 mvn clean install
  or
 mvn clean

 its giving below mentioned error



 [INFO] Scanning for projects...
 Downloading: 
 http://repo1.maven.org/maven2/com/xpn/xwiki/platform/xwiki/22/xwiki
 -22.pom
 [ERROR] The build could not read 1 project - [Help 1]
 [ERROR]   The project 
 com.xpn.xwiki.products:xwiki-watch-parent:1.1-SNAPSHOT (E:
 \SVN MAIN\Xwatch\pom.xml) has 1 error
 [ERROR] Non-resolvable parent POM com.xpn.xwiki.platform:xwiki:22 
 for com.xp
 n.xwiki.products:xwiki-watch-parent:1.1-SNAPSHOT: Failed to resolve POM 
 for com.
 xpn.xwiki.platform:xwiki:22 due to Missing:
 --
 1) com.xpn.xwiki.platform:xwiki:pom:22
 --
 1 required artifact is missing.

 for artifact:
 com.xpn.xwiki.platform:xwiki:pom:22

 from the specified remote repositories:
 central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
   - [Help 2]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the 
 -e swit
 ch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions, 
 please rea
 d the following articles:
 [ERROR] [Help 1] 
 http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
 gException
 [ERROR] [Help 2] 
 http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableMo
 delException



 can you please correct me if i am doing anything wrong?


 Thanks,
 Simer



 --

 Message: 2
 Date: Mon, 16 Aug 2010 15:55:33 +0200
 From: Dalluege, Pierre (extern) p.dallu...@external.telekom.de
 Subject: Re: [xwiki-users] ldap-integration / Active Directory/
   sAMAcountName
 To: 'XWiki Users' users@xwiki.org
 Message-ID:
   4a19ab2a76a6ce4294ab09e23491ed1af17ea...@qeo40075.de.t-online.corp
 Content-Type: text/plain; charset=us-ascii

 Hi Tom,

 I reviewed the faq in respect to ldap, the link you provided had the missing 
 information, pretty cool, thank you very much! In respect to user name 
 p.dalluege gets to pdalluege, probably because it will be used for page 
 names and links?

 Best regards

 Pierre 

 -Original Message-
 From: Thomas Mortagne [mailto:thomas.morta...@xwiki.com] 
 Sent: Monday, August 16, 2010 8:49 AM
 To: XWiki Users
 Subject: Re: [xwiki-users] ldap-integration / Active Directory / sAMAcountName

 Hi,

 Did you looked at
 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/LDAPAuthenticationUseCases#HActiveDirectory
 ? This should work very well for Active Directory most of the time AFAIK.

 On Sun, Aug 15, 2010 at 23:53, Dalluege, Pierre (extern) 
 p.dallu...@external.telekom.de wrote:
   
 Hello xwiki users,

 I have to integrate with an microsoft active directory server. The 
 ldap-interface of xwiki (as in xwiki.cfg) works by default with the cn (the 
 canonical name), i.e. Pierre Dalluege. No one can really put his full name 
 into the login name 

Re: [xwiki-users] Problem building xWatch Code with Maven

2010-08-17 Thread Guillaume Lerouge
Hi Simerpreet,

I'm glad that you're interested in XWiki software. The community is working
hard on improving it better and I hope it will match your expectations.
However, I'm afraid that you misinterpreted some of the community rules (you
can find out more about them here:
http://dev.xwiki.org/xwiki/bin/view/Community/Contributing).

In short, people from the community do their work on a voluntary basis, in
their free time, unless sponsored by a company. They contribute to the
project and help other users out because they like, not out of obligation.
If you'd like to get guaranteed answers, you can purchase professional
support. If that's not what you're looking for, you can ask the community
nicely and hope for the best. Usually, most people get answers rather fast.

On Tue, Aug 17, 2010 at 08:01, Simerpreet Singh 
simerpreet.si...@netsolutionsindia.com wrote:

 Hi,

 Please provide a resolution on issue i had posted yesterday regarding
 maven  build of xwatch.


In light of what I have written above, I'm sure you'll understand that your
comment here is a bit out of line. People read the list regularly and they
most likely have seen your message. Reposting a question the very next day
isn't very respectful to their patience and effort and I'm sure you'll
appreciate that.

If you'd like to increase the likelihood that you'll get an answer, a good
way to do this would be to spread the word about XWiki or to answer other
people's questions.

Thanks,

Guillaume


 Thank,
 Simerpreet Singh



 users-requ...@xwiki.org wrote:
  Send users mailing list submissions to
users@xwiki.org
 
  To subscribe or unsubscribe via the World Wide Web, visit
http://lists.xwiki.org/mailman/listinfo/users
  or, via email, send a message with subject or body 'help' to
users-requ...@xwiki.org
 
  You can reach the person managing the list at
users-ow...@xwiki.org
 
  When replying, please edit your Subject line so it is more specific
  than Re: Contents of users digest...
 
 
  Today's Topics:
 
 1. Problem building code for xwatch with maven (Simerpreet Singh)
 2. Re: ldap-integration / Active Directory /   sAMAcountName
(Dalluege, Pierre (extern))
 3. Re: ldap-integration / Active Directory /   sAMAcountName
(Thomas Mortagne)
 4. R:  LightBox Macro does not work on XE 2.4 (Andrea Belli)
 5. Re: R: LightBox Macro does not work on XE 2.4 (Thomas Mortagne)
 6. question about Last modifications feed of a userwatchlist
(Andrea Belli)
 7. R: R: user name with stressed characters is encoded as XML
entity (Andrea Belli)
 8. Re: R: R: user name with stressed characters is encoded as
XML entity (Alex Busenius)
 
 
  --
 
  Message: 1
  Date: Mon, 16 Aug 2010 15:58:07 +0530
  From: Simerpreet Singh simerpreet.si...@netsolutionsindia.com
  Subject: [xwiki-users] Problem building code for xwatch with maven
  To: users@xwiki.org
  Message-ID: 4c6912b7.1050...@netsolutionsindia.com
  Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 
  Hi,
 
  Iam using xwiki 2.3.1 and trying to install xwatch on in.According to
  instructions given in
 
 http://watch.xwiki.org/xwiki/bin/view/Main/Installation#HBuildingandinstallinganXWikiWatchSnapshotoveranexistingXWikiEnterprise
 
  i downloaded code from svn
 http://svn.xwiki.org/svnroot/xwiki/watch/trunk/#
  but when i try to build it using following commands
  mvn clean install
   or
  mvn clean
 
  its giving below mentioned error
 
 
 
  [INFO] Scanning for projects...
  Downloading:
  http://repo1.maven.org/maven2/com/xpn/xwiki/platform/xwiki/22/xwiki
  -22.pom
  [ERROR] The build could not read 1 project - [Help 1]
  [ERROR]   The project
  com.xpn.xwiki.products:xwiki-watch-parent:1.1-SNAPSHOT (E:
  \SVN MAIN\Xwatch\pom.xml) has 1 error
  [ERROR] Non-resolvable parent POM com.xpn.xwiki.platform:xwiki:22
  for com.xp
  n.xwiki.products:xwiki-watch-parent:1.1-SNAPSHOT: Failed to resolve POM
  for com.
  xpn.xwiki.platform:xwiki:22 due to Missing:
  --
  1) com.xpn.xwiki.platform:xwiki:pom:22
  --
  1 required artifact is missing.
 
  for artifact:
  com.xpn.xwiki.platform:xwiki:pom:22
 
  from the specified remote repositories:
  central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
- [Help 2]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the
  -e swit
  ch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions,
  please rea
  d the following articles:
  [ERROR] [Help 1]
  http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
  gException
  [ERROR] [Help 2]
  http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableMo
  delException
 
 
 
  can you please correct me if i am doing anything wrong?
 
 
  Thanks,
  Simer
 

Re: [xwiki-users] How do I run a query from a rdf database in xwiki page

2010-08-17 Thread Eduard Moraru
  Hi abrante,

If I understood correctly your question, you want to know how to query 
(using a SPARQL query) your RDF knowledge base server (hosted on some 
remote machine) trough the SPARQL protocol from an XWiki page by the 
push of a button or link and display the results on the same page.

There are 2 options:
1. Manually use the SPARQL protocol to send a HTTP request to your 
server trough AJAX from the XWiki page.
2. Have(make) an XWiki plugin that uses some java library like Jena or 
Sesame to make remote SPARQL queries and use it with Velocity from an 
XWiki page.

For both cases, see the specification of the SPARQL protocol and how to 
use it over HTTP (or SOAP): 
http://www.w3.org/TR/rdf-sparql-protocol/#query-bindings-http

If you like Option 1, then you must:
1. Create a button or link and assign it an ID.
2. Create a div or some sort of container for the result and assign it 
an ID as well.
3. Add a JavaScriptExtension (JSX) object to your xwiki page and observe 
the click event ( http://www.prototypejs.org/api/element/methods/observe 
) of the element with the ID you just assigned at step 1 (your link/button).
4. Implement the JS event handler to issue an Ajax request ( 
http://www.prototypejs.org/learn/introduction-to-ajax ) with your 
hand-crafted query to your SPARQL (RDF) server.
4'. Implement the JS callback method that takes the result of the Ajax 
request, processes it and then dump it into your HTML container that you 
created at step 2 in order to show the result to the user.

Here is a sample HTTP query (that works from your browser): 
http://www4.wiwiss.fu-berlin.de/is-group/sparql?query=SELECT * WHERE {?s 
?o ?p} LIMIT 10
Encoded version looks like this: 
http://www4.wiwiss.fu-berlin.de/is-group/sparql?query=SELECT%20*%20WHERE%20{%3Fs%20%3Fo%20%3Fp}%20LIMIT%2010

I hope I did not assume too much :)

Good luck,
Eduard

On 08/17/2010 10:38 AM, abrante wrote:
 I am trying to run a query from one xwiki page but I could not, someone
 please can sent me some code example? I want that the user only do click in
 the link and the report must appear.

 My query is the follow and I am working with velocity for the scripts

 Thanks in advance :)

 SELECT DISTINCT ?property ?hasValue ?isValueOf
 WHERE {
{
 http://testforge.int-evry.fr/d2r-server/resource/bugsubmitters/6688a14521cd97db162af8f9757f2e2232300e50
 ?property ?hasValue
 }
UNION
{ ?isValueOf ?property
 http://testforge.int-evry.fr/d2r-server/resource/bugsubmitters/6688a14521cd97db162af8f9757f2e2232300e50
 }
 }
 ORDER BY (!BOUND(?hasValue)) ?property ?hasValue ?isValueOf 



___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Calendar Application on XE 2.4 not working properly

2010-08-17 Thread Raluca Stavro
Hello Ramon,

The current calendar application has no custom styles applied on it.
See http://jira.xwiki.org/jira/browse/XACALENDAR-14 .
I added a patch to it and I hope that it will be applied very soon.

Raluca.

2010/8/13 Ramon Gomes Brandão - SERINT ramon.bran...@tjdft.jus.br:
 Hi,



 I've Just installed Calendar Plugin and Calendar Application on my XE 2.4 
 instance. It works when I point to xwiki/bin/view/Main/EventCalendar/, but 
 its look and feel is far away of that smooth one shown in the Calendar 
 Application home page 
 (http://code.xwiki.org/xwiki/bin/view/Applications/CalendarApplication).



 The calendar appears as a very simple and rough table, its cells don't have a 
 prefixed size (nothing more than just the length of the two digits number of 
 the day) and it does not show the PDF creation link. It also doesn't mark the 
 today day on the calendar. I've checked the source code and it seems that 
 the $cview.getHTMLCalendar($cparams, ) method isn't building a smooth 
 calendar. How can I fix this?



 Doesn't XE 2.4 contain an event calendar by default? If so, how can I access 
 it?



 I'm using the colibri skin.



 Regards,



 Ramon Gomes Brandão



 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] RES: Calendar Application on XE 2.4 not workingproperly

2010-08-17 Thread Ramon Gomes Brandão - SERINT
Raluca, 

Is there a way to apply the modifications of this patch on my running calendar 
application instance? I would like  to test it without the need to build the 
application. 

Maybe editing the source code of xwiki/bin/view/XWiki/CalendarSheet ?

Ramon Gomes Brandão


-Mensagem original-
De: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Em nome de Raluca 
Stavro
Enviada em: terça-feira, 17 de agosto de 2010 10:32
Para: XWiki Users
Assunto: Re: [xwiki-users] Calendar Application on XE 2.4 not workingproperly

Hello Ramon,

The current calendar application has no custom styles applied on it.
See http://jira.xwiki.org/jira/browse/XACALENDAR-14 .
I added a patch to it and I hope that it will be applied very soon.

Raluca.

2010/8/13 Ramon Gomes Brandão - SERINT ramon.bran...@tjdft.jus.br:
 Hi,



 I've Just installed Calendar Plugin and Calendar Application on my XE 2.4 
 instance. It works when I point to xwiki/bin/view/Main/EventCalendar/, but 
 its look and feel is far away of that smooth one shown in the Calendar 
 Application home page 
 (http://code.xwiki.org/xwiki/bin/view/Applications/CalendarApplication).



 The calendar appears as a very simple and rough table, its cells don't have a 
 prefixed size (nothing more than just the length of the two digits number of 
 the day) and it does not show the PDF creation link. It also doesn't mark the 
 today day on the calendar. I've checked the source code and it seems that 
 the $cview.getHTMLCalendar($cparams, ) method isn't building a smooth 
 calendar. How can I fix this?



 Doesn't XE 2.4 contain an event calendar by default? If so, how can I access 
 it?



 I'm using the colibri skin.



 Regards,



 Ramon Gomes Brandão



 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Problem building code for xwatch with maven

2010-08-17 Thread Anca Luca
Hi Simer,

On 08/16/2010 01:28 PM, Simerpreet Singh wrote:
 Hi,

 Iam using xwiki 2.3.1 and trying to install xwatch on in.According to
 instructions given in
 http://watch.xwiki.org/xwiki/bin/view/Main/Installation#HBuildingandinstallinganXWikiWatchSnapshotoveranexistingXWikiEnterprise

Setup your settings.xml file as indicated in the general xwiki build 
instructions in here: 
http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven .

The issue you're encountering is caused by the fact that your maven it's 
trying to download the xwiki artefacts needed to build watch only from 
the maven central repository, where they are not.

Have fun,
Anca


 i downloaded code from svn http://svn.xwiki.org/svnroot/xwiki/watch/trunk/#
 but when i try to build it using following commands
 mvn clean install
   or
 mvn clean

 its giving below mentioned error



 [INFO] Scanning for projects...
 Downloading:
 http://repo1.maven.org/maven2/com/xpn/xwiki/platform/xwiki/22/xwiki
 -22.pom
 [ERROR] The build could not read 1 project -  [Help 1]
 [ERROR]   The project
 com.xpn.xwiki.products:xwiki-watch-parent:1.1-SNAPSHOT (E:
 \SVN MAIN\Xwatch\pom.xml) has 1 error
 [ERROR] Non-resolvable parent POM com.xpn.xwiki.platform:xwiki:22
 for com.xp
 n.xwiki.products:xwiki-watch-parent:1.1-SNAPSHOT: Failed to resolve POM
 for com.
 xpn.xwiki.platform:xwiki:22 due to Missing:
 --
 1) com.xpn.xwiki.platform:xwiki:pom:22
 --
 1 required artifact is missing.

 for artifact:
 com.xpn.xwiki.platform:xwiki:pom:22

 from the specified remote repositories:
 central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
-  [Help 2]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e swit
 ch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please rea
 d the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
 gException
 [ERROR] [Help 2]
 http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableMo
 delException



 can you please correct me if i am doing anything wrong?


 Thanks,
 Simer

 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] RES: Calendar Application on XE 2.4 not workingproperly

2010-08-17 Thread Lockie

I am also eagerly awaiting a more functional and better looking calendar, I
hope your patch gets through soon. I tried the 
http://dev.xwiki.org/xwiki/bin/view/Drafts/XWiki-Calendar GWT-Calendar 
aswell but I get a lot of errors, so either I'm doing something wrong or its
not functional yet...

Lockie.
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/Calendar-Application-on-XE-2-4-not-working-properly-tp5420827p5434752.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users