Re: [Wikidata] How to reach the wikipedia abstract propert?

2016-02-04 Thread Markus Krötzsch

Hi,

For the record, I have heard a similar question recently. Maybe we could 
actually offer the abstracts as a service or otherwise "virtual" 
property that is simply added to the query result at the end. With the 
API Finn mentions (I did not know this, thanks!), it seems that this is 
not so hard.


Another thing to point out is that, if the goal is to display short 
"previews" of articles in a web page, it might be better to use the 
Wikipedia mobile view instead. It should be possible to embed it into 
any web page with a bit of Javascript and it gives much nicer (yet space 
efficient) results.


Cheers,

Markus


On 04.02.2016 17:47, Finn Årup Nielsen wrote:

Hi Miriam,


I am not aware of the ability of Wikidata to return the abstract. I
think you have to use Wikipedia.

https://en.wikipedia.org/w/api.php?format=jsonfm&action=query&prop=extracts&explaintext=&exsentences=2&titles=SPARQL


https://stackoverflow.com/questions/8555320/is-there-a-clean-wikipedia-api-just-for-retrieve-content-summary


This gives you:

{
 "batchcomplete": "",
 "query": {
 "pages": {
 "2574343": {
 "pageid": 2574343,
 "ns": 0,
 "title": "SPARQL",
 "extract": "SPARQL (pronounced \"sparkle\", a recursive
acronym for SPARQL Protocol and RDF Query Language) is an RDF query
language, that is, a semantic query language for databases, able to
retrieve and manipulate data stored in Resource Description Framework
(RDF) format. It was made a standard by the RDF Data Access Working
Group (DAWG) of the World Wide Web Consortium, and is recognized as one
of the key technologies of the semantic web."
 }
 }
 }
}


best regards
Finn


On 02/04/2016 01:03 PM, Miriam Allalouf wrote:

Hi,

We are accessing Wikidata using embedded SPARQL queries.

We need to have the abstract of an article (namely to retrieve it from
the Wikipedia article).

I can get the site link of an article – though I cannot get a specific
paragraph,  particularly the abstract of the article.

It works for me when I use the DBpedia but I want to do it using
wikidata.

Please let me know how?

Thanks a lot,

Miriam

=

/Miriam Allalouf, PhD/

/Software Engineering Department, JCE ///

/Academic Head of Mahar Project///

/ Mobile tel: +972-52-3664129//
 email: miria...@jce.ac.il
Azrieli  College of Engineering Jerusalem - JCE

/



___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata







___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


Re: [Wikidata] How to reach the wikipedia abstract propert?

2016-02-04 Thread Finn Årup Nielsen

Hi Miriam,


I am not aware of the ability of Wikidata to return the abstract. I 
think you have to use Wikipedia.


https://en.wikipedia.org/w/api.php?format=jsonfm&action=query&prop=extracts&explaintext=&exsentences=2&titles=SPARQL

https://stackoverflow.com/questions/8555320/is-there-a-clean-wikipedia-api-just-for-retrieve-content-summary

This gives you:

{
"batchcomplete": "",
"query": {
"pages": {
"2574343": {
"pageid": 2574343,
"ns": 0,
"title": "SPARQL",
"extract": "SPARQL (pronounced \"sparkle\", a recursive 
acronym for SPARQL Protocol and RDF Query Language) is an RDF query 
language, that is, a semantic query language for databases, able to 
retrieve and manipulate data stored in Resource Description Framework 
(RDF) format. It was made a standard by the RDF Data Access Working 
Group (DAWG) of the World Wide Web Consortium, and is recognized as one 
of the key technologies of the semantic web."

}
}
}
}


best regards
Finn


On 02/04/2016 01:03 PM, Miriam Allalouf wrote:

Hi,

We are accessing Wikidata using embedded SPARQL queries.

We need to have the abstract of an article (namely to retrieve it from
the Wikipedia article).

I can get the site link of an article – though I cannot get a specific
paragraph,  particularly the abstract of the article.

It works for me when I use the DBpedia but I want to do it using wikidata.

Please let me know how?

Thanks a lot,

Miriam

=

/Miriam Allalouf, PhD/

/Software Engineering Department, JCE ///

/Academic Head of Mahar Project///

/ Mobile tel: +972-52-3664129//
 email: miria...@jce.ac.il
Azrieli  College of Engineering Jerusalem - JCE

/



___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata




--
Finn Årup Nielsen
http://people.compute.dtu.dk/faan/

___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


[Wikidata] How to reach the wikipedia abstract propert?

2016-02-04 Thread Miriam Allalouf
Hi,

We are accessing Wikidata using embedded SPARQL queries.

We need to have the abstract of an article (namely to retrieve it from the
Wikipedia article).

I can get the site link of an article - though I cannot get a specific
paragraph,  particularly the abstract of the article.

It works for me when I use the DBpedia but I want to do it using wikidata.

Please let me know how? 

Thanks a lot,

Miriam

 

 

 

=

Miriam Allalouf, PhD

Software Engineering Department, JCE 

Academic Head of Mahar Project

 Mobile tel: +972-52-3664129
email: miria...@jce.ac.il
Azrieli  College of Engineering Jerusalem - JCE



 

___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata