Quantcast

Contents Importer - Error No type definition was found for "firstName" in the foaf import.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Contents Importer - Error No type definition was found for "firstName" in the foaf import.

Andre-2
Hi

Using [1],[2],[3] below, update.php triggers contents importer
<https://www.semantic-mediawiki.org/wiki/Help:Contents_importer> which
creates the property page foaf:firstName with the following wiki text.
/
//*index.php/Property:Foaf:firstName*//
//* [[Imported from::foaf:firstName]]//
//* [[Has property description::The first name of a person.@en]]//
//
//[[Category:Imported vocabulary]]{{DISPLAYTITLE:foaf:firstName}}/

When viewed  however a warning shows.


  /foaf:firstName (Foaf:firstName)/

//
//

  * /////Error No type definition was found for "firstName" in the foaf
    import.//
    /
  * /The first name of a person. (en)/

The above page is relatively identical to index.php/Property:Foaf:knows
which displays as follows


  /foaf:knows (Foaf:knows)/

//
//

  * /foaf:knows
    <http://localhost/bluespice2271/index.php/MediaWiki:Smw_import_foaf>//(//foaf
    <http://xmlns.com/foaf/0.1/>//| //Friend Of A Friend
    <http://www.foaf-project.org/>//) /
  * /A person known by this person (indicating some level of
    reciprocated interaction between the parties). (en) /

_How do I remedy the type definition warning? _

Regards

[1] /SemanticMediawiki/src/data/*vocabulary.json*
     "description": "Semantic MediaWiki default vocabulary import",
     "import": [
         {
             "page": "Smw import foaf",
             "namespace": "NS_MEDIAWIKI",
             "contents": {
                 "importFrom": "foaf.txt"
             },
             "options": {
                 "canReplace": false
             }
         },
         {
/            "page": "Foaf:firstName",//
//            "namespace": "SMW_NS_PROPERTY",//
//            "contents": "* [[Imported from::foaf:firstName]] \n* [[Has
property description::The first name of a person.@en]]
\n\n[[Category:Imported vocabulary]]{{DISPLAYTITLE:foaf:firstName}}",//
//            "options": {//
//                "canReplace": true//
//            }//
//        },

/
[2] /SemanticMediawiki/src/data/*foaf.txt
*http://xmlns.com/foaf/0.1/|[http://www.foaf-project.org/ Friend Of A
Friend]
  name|Type:Text
........
  Person|Category
  firstName|Type:Text
.........
[[Category:Imported vocabulary]]

[3]*MediaWiki:Smw_import_foaf*
http://xmlns.com/foaf/0.1/|[http://www.foaf-project.org/ Friend Of A Friend]
........
  name|Type:Text
  firstName|Type:Text
.........
[[Category:Vocabulary import]] [[Category:Foaf]]



--
Andre Maas
082 895 2149

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Loading...