Wikipedia talk:WikiProject Microformats/COinS
From Wikipedia, the free encyclopedia
Contents |
[edit] Citation template
To add COinS to {{Citation}}, we need to:
- Figure out all of the formats it can handle, like books, web sites, and newspapers
- Figure out the appropriate COinS markup for each of those formats
- Add them to the individual templates, like {{cite web}} and {{cite news}}.
- Then figure out what Citation uses to switch between cases
- Copy COinS tags from each individual template into Citation, get rid of redundant content and use the switch to switch between the parts that aren't the same between formats. — Omegatron 16:30, 18 April 2007 (UTC)
[edit] Thing Citation template handles
- Books
- {{Cite book}}
- Already done
- Journals
- {{Cite journal}}
- Already done
- Newspapers
- {{Cite news}} (but also handles televised and web news?)
- Added a tag
- Magazines
- Edited books or parts
- Encyclopedias
- Encyclopedia articles
- Contributions, republications, or edited quotations in a periodical article?
[edit] COinS formats
- Book
- info:ofi/fmt:kev:mtx:book ("This Matrix represents a single document published at one time.")
- Genres:
- book : a publication that is complete in one part or a designated finite number of parts, often identified with an ISBN.
- Same as {{cite book}}
- bookitem : a defined section of a book, usually with a separate title or number.
- conference : a publication bundling the proceedings of a conference.
- Same as {{cite conference}}
- proceeding : a conference paper or proceeding published in a conference publication.
- Same as {{cite conference}}?
- report : report or technical report is a published document that is issued by an organization, agency or government body.
- document : general document type to be used when available data elements do not allow determination of a more specific document type, i.e. when one has only author and title but no publication information.
- unknown: use when the genre of the document is unknown.
- book : a publication that is complete in one part or a designated finite number of parts, often identified with an ISBN.
- Journal
- info:ofi/fmt:kev:mtx:journal
- Genres:
- journal: a serial publication issued in successive parts.
- Same as {{cite journal}}?
- issue: one instance of the serial publication.
- article: a document published in a journal.
- Same as {{cite journal}}
- conference: a record of a conference that includes one or more conference papers and that is published as an issue of a journal or serial publication
- Same as {{cite conference}}?
- proceeding: a single conference presentation published in a journal or serial publication
- Same as {{cite conference}}?
- preprint: an individual paper or report published in paper or electronically prior to its publication in a journal or serial.
- Same as {{cite paper}}?
- unknown: use when the genre of the document is unknown.
- journal: a serial publication issued in successive parts.
- Dissertation
- info:ofi/fmt:kev:mtx:dissertation (" This Matrix represents a dissertation related to a course of study at an institution of higher education.")
- {{cite paper}} covers this, but also other things? - 'This template is for other kinds of "papers", for example a thesis, or an essay or paper that has been separately published (including papers on arXiv).'
- Patent
- info:ofi/fmt:kev:mtx:patent
- Already in {{US patent reference}}, {{Ref patent}}
[edit] Webpage references
Moved from my talk. — Omegatron 06:17, 21 April 2007 (UTC)
So as far as I can tell, the whole COinS/openurl thing doesn't seem to support webpage references at all yet, and not expected to for a really long time. Would it be madness to suggest that a modified form of the COinS metadata for {{cite journal}} be used for {{cite web}}? (that is, see User:Gwern/test and User:Gwern/test2). Seems to work, and it's the closest in concept anyway. --Gwern (contribs) 04:48 21 April 2007 (GMT)
- That's what I thought at first, and why I used the journal format for the "Cite this article" page, but then I was looking at Zotero's website with OpenURL Referrer turned on, and they have COinS tags with things like "blog post" that they are apparently doing with the Dublin Core format. We should look into that. There will also be the hCite microformat in the future, which i think does basically the same thing but in a different way. — Omegatron 05:56, 21 April 2007 (UTC)
- And now that I look again, they're talking about us! And claiming that all of our citation templates have COinS! Uh oh. ;-) Time to get to work... — Omegatron 05:59, 21 April 2007 (UTC)
-
- Actually, it's even worse than that: the main COinS page lists Wikipedia as one of the sites implementing COinS! (With it implied that all our stuff does it, because how could a big professional site like Wikipedia have implemented something like COinS on only some of its articles? :) --Gwern (contribs) 17:45 21 April 2007 (GMT)
-
-
- Hehe. We need to get to work! Amusingly, I broke all of them by URLencoding the wrong part the other day, and then was too busy to work on it. We need more than just me working on these... — Omegatron 00:35, 24 April 2007 (UTC)
-
- Strangely, [1] will import, but [2] does not for me. Their COinS are identical in format as far as I can tell (
rft.type=blogPost&
). I can copy and paste the following, though, which is totally excellent:
- — Omegatron 06:16, 21 April 2007 (UTC)
-
- Speaking of which, are there any plans to change the export format? I was a little surprised to see that it didn't produce a bulleted & sorted list but rather line-separated entries. --Gwern (contribs) 17:45 21 April 2007 (GMT)
-
-
- I think it's fine. Sometimes you want them inside ref tags, sometimes you want them in an ordered list. Sometimes an unordered list. It still does a lot of the work for you. — Omegatron 20:29, 21 April 2007 (UTC)
-
- But if I include the same COinS over here, neither are recognized by Zotero: O. So is there something else on the page that it is reading? I can't find anything. — Omegatron 15:57, 21 April 2007 (UTC)
-
- Are you sure Wikipedia isn't in someway mangling or eating the stuff inside the <span> tag? Also, I notice that each one includes a relevant URL inside the domain. --Gwern (contribs) 17:45 21 April 2007 (GMT)
You have to put something inside the span or Mediawiki strips it
Aha! After intensive trial and error over at User:Gwern/test2, I have discovered the difference, apparently. If you copy and paste the "WP/ZOT" blog COinS to an empty page, it will not work. But if you edit the title of the blog from "Wikipedia & Zotero:..." to "Wikipedia and Zotero:...", omitting the ampersand, it seems to work fine. As far as I can tell, the start of one field is delimited from the end of the previous by... an ampersand. So I guess the problem was that the ampersand was not being escaped. And why neither was working here I don't really know, but it's probably just how you embedded them into your post. --Gwern (contribs) 18:41 21 April 2007 (GMT)
- Ampersand makes perfect sense. Thanks. — Omegatron 20:27, 21 April 2007 (UTC)
OK, so the breaking-in-Wikipedia issue is resolved. Shall we figure out how to get into a form we can stick into the template? --Gwern (contribs) 22:25 21 April 2007 (GMT)
- They were using an older software version. So theirs is fixed now ([1] [2]) and the mistake I made the other day is fixed now. On to more templates... — Omegatron 00:35, 24 April 2007 (UTC)
[edit] About COinS on Wikipedia
Could someone add some notes about the use of COinS in Wikipedia (what they are, why we're using them, progress so far, examples, and future plans, say), at this page's parent, please? Andy Mabbett 09:25, 25 April 2007 (UTC)
- Want to move User:Omegatron#COinS there and reword it? — Omegatron 13:42, 25 April 2007 (UTC)
-
- Done, thank you - please check. I also left a pointer on your user page. Andy Mabbett 14:18, 25 April 2007 (UTC)
[edit] How to mark up article about a book
How would you add COinS/ citation templates to an article about the various editions of a book, such as Handbook of British Birds? Please feel free to do so! Andy Mabbett 15:27, 25 April 2007 (UTC)
- Hmmm... Well, you could copy and paste the tag from {{cite book}} and replace all the fields. But if this is something we were going to do on all articles, it would be better to have a template for it. I'm not sure if this is the way COinS is meant to be used, but it's probably a legit thing to do. — Omegatron 17:23, 25 April 2007 (UTC)
-
- Have you had a look at the article? It refers to several impressions, a concise volume, and several editions (one of which has an SBN) and a supplementary volume of the latter. Think of it as a test case ;-) Andy Mabbett 12:11, 26 April 2007 (UTC)
Anyone? Andy Mabbett 09:19, 8 June 2007 (UTC)
- I'm not sure what you are requesting. COinS is not as rich as FRBR, but you can have a separate entity for most of the manifestations. COinS doesn't use SBN, but "affixing a zero (0) as prefix to a 9-digit SBN creates a valid 10-digit ISBN." COinS can identify a specific edition & the supplemental volume would, of course, be a different book.
- COinS cannot be used to simultaneously and richly describe all manifestations of a work. You'd have to use only those fields in common & omit others. However, there are OpenURL resolvers that will do their best to find other manifestations when given a single one. --Karnesky (talk) 17:42, 8 April 2008 (UTC)
[edit] Category
I created Category:Templates generating COinS, to match the existing Category:Templates generating hCards, etc., but only one of the templates I added it to is showing up. Any ideas why? Andy Mabbett 09:32, 8 June 2007 (UTC)
[edit] rfr_id
Is there a reason we don't have rfr_ids in COinS-generating templates? --Karnesky (talk) 17:32, 8 April 2008 (UTC)
- Not that I know of. What should it be? rfr_id=info:sid/wikipedia.org:books for {{cite book}}?
- http://info-uri.info/registry/OAIHandler?verb=GetRecord&metadataPrefix=reg&identifier=info:sid/ — Omegatron (talk) 17:56, 7 June 2008 (UTC)