On Sunday 11 March 2007 03:20, Harry Halpin wrote: > Thanks for the great mediawiki add-on! Right now I have a large RDF file > and a RDF Schema that describes U.S. patents, and am in process on > working on exporting a large group of computer patents into RDF (since, > after all, information should be free).
Nice project! > > Now, I want for patent researchers to be able to use Semantic Mediawiki > to describe and connect the patents to other useful information. > However, I am having trouble with "importing vocabularies" as suggested > here [1]. I already have converted all the patent data into RDF using > an RDF Schema for patent data [2], so all I want is to use that > vocabulary in my Semantic MediaWiki, and mix it with FOAF etc. I've > tried to follow the instructions at [1] for the patent schema here [3] > in order for it to be explicitly usable by users of my wiki. > > However, if I go to my SemanticMedia wiki [4] and want to get the > following triple to be produced for JohnDoeExample: > > http://vis.duke.edu/Research/interface/archive/JohnDoeExample rdf:type > http://vis.duke.edu/Research/interface/patentschema#person. > > And: > > http://vis.duke.edu/Research/interface/archive/JohnDoeExample > http://vis.duke.edu/Research/interface/patentschema#born > 15-02-1961 > > What do I type when I "Edit" the entry? The example about using > foaf:knows I'm not finding very informative. To I have to make a wiki > page for each of the predicates and subjects defined in my RDFS[2] > before using them? Yes. > And then how do I just directly use them in the Wiki? Your page [3] is something that the admin of a wiki makes. It just states, which vocabulary elements are allowed in which role (e.g. "patent:launched" can only be a relation). After this, the users are free to use those vocabulary elements in the wiki, possibly under new names. This means that they take (existing) relations, attributes, categories, ... and declare them as being imported from the vocabulary. In your example you can write on your page [4] something like John Doe is born in [[birthday:=Feb 15, 1961]]. [[Cagtegory:Person]] For this to make sense, there must be an attribute Attribute:birthday of type Type:Date (otherwise the data is not stored properly and you see an error in the factbox). After you annotated John as above, your RDF will use only the wiki-URIs for the export. To change this, you go to any page whose URI you want to modify, and you type "[[imported from:=patent:nonsense]]" where "patent:nonsense" is the actual ID you want to use. It is then checked whether this ID was enabled by the administrator (you) on page [3]. In your case, it works for Category:Person/patent:person, but it will fail for Attribute:birthday/ patent:born (since patent:born was declared to be the URI of a relation -- unless you want your export to use full URIs for dates you should probably change this to Type:Date). There is no more direct way for importing vocabulary into the wiki, since it is important that only administrators can responsably declare which type must be used with which external URI (you don't want foaf:Person to be the URI of an attribute in your export), wheras all users should have the freedom to use (or not use) the provided external URIs if they fit the content (this is a decision of those who author the data in the wiki). -- Markus > > > [1]http://wiki.ontoworld.org/wiki/Help:Import_vocabulary > [2]http://vis.duke.edu/Research/interface/patentschema > [3]http://vis.duke.edu/Research/interface/archive/MediaWiki:Smw_import_pate >nt [4]http://vis.duke.edu/Research/interface/archive/JohnDoeExample -- Markus Krötzsch Institute AIFB, University of Karlsruhe, D-76128 Karlsruhe [EMAIL PROTECTED] phone +49 (0)721 608 7362 www.aifb.uni-karlsruhe.de/WBS/ fax +49 (0)721 693 717
pgpbZcILHOVmk.pgp
Description: PGP signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Semediawiki-user mailing list Semediawiki-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-user