DemoBug

From QMRAwiki
Jump to: navigation, search

Example of Library Resource

I propose a QMRA library design in the likes of the lib.msu.edu's listing. Example Snapshot:

MsuLIbDemo.png


Below is an illustration of the form I currently have. It is defined as a template. The Semantic Internal Object, the feature that will allow us to search and display each resource according to any one of the included pieces of information, is defined on the template definition page.


image Title Authors Publishers Date Media
Quantitative Microbial Risk Assessment Haas, C.N., Rose, J.B. & Gerba, C.P. New York, NY: John Wiley & Sons, Inc. Jan 25 1999 Books and Articles


Below is the markup used to generate the above instance.

{{Resource
|image=MonographCover.png
|title=Quantitative Microbial Risk Assessment
|authors=Haas, C.N., Rose, J.B. & Gerba, C.P.
|publishers=New York, NY: John Wiley & Sons, Inc.
|year=Jan 25 1999
|media=Books and Articles
|link=http://www.amazon.com/Quantitative-Microbial-Risk-Assessment-Charles/dp/0471183970/ref=sr_1_1?s=books&ie=UTF8&qid=1375363612&sr=1-1
}}

Example of Query

The query seen below calls all defined resources. Because of the semantic internal objects definition included in the Resource template definition page, the object 'Has resource' is created for every Resource template instantiated.


{{#ask:[[Has resource::+]]
|mainlabel=- 
|? Has image=Image
|? Has title=Title
|? Has authors=Authors
|? Has publishers=Publishers
|? Has year=Year
|? Has media=Media
}}


ImageTitleAuthorsPublishersYearMedia
MonographCover.pngQuantitative Microbial Risk AssessmentHaas, C.N., Rose, J.B. & Gerba, C.P.New York, NY: John Wiley & Sons, Inc.Jan 25 1999Books and Articles
Urban water pic1.pngBest Title EverJohn Doe, Jane DoeScienceIsAwesome1989Textbook
Urban water pic1.pngBest Title EverJohn DoeSpringer1989Textbook

Below is another example of a resource. In this example, no link was provided.

image Title Authors Publishers Date Media
[ Available Here]
[ Best Title Ever ] John Doe, Jane Doe ScienceIsAwesome 1989 Textbook


The code that generated the above example:

{{Resource
|image=Urban water pic1.png
|title=Best Title Ever
|authors=John Doe, Jane Doe
|publishers=ScienceIsAwesome
|year=1989
|media=Textbook
}}