Changes

Jump to navigation Jump to search
no edit summary
Line 5: Line 5:  
      
 
      
 
var wbEStruct = {
 
var wbEStruct = {
subclassOfRelations: 'claims.P4', // location of P3 relations in wbEntity
+
subclassOfRelations: 'claims.P4', // location of P4 relations in wbEntity
 
defaultValRelation: 'claims.P108',
 
defaultValRelation: 'claims.P108',
 
instanceOfRelations: 'claims.P3',
 
instanceOfRelations: 'claims.P3',
Line 54: Line 54:  
}
 
}
    +
// ?
 
function getA( rel_A ){
 
function getA( rel_A ){
 
     if ( typeof check(obj, wbEStruct[ rel_A ]) != "undefined" ) {
 
     if ( typeof check(obj, wbEStruct[ rel_A ]) != "undefined" ) {
Line 60: Line 61:  
}
 
}
    +
// ?
 
function checkAgetB ( rel_A, rel_B ) {
 
function checkAgetB ( rel_A, rel_B ) {
 
if ( typeof mw.config.values.wbEntity !=  "undefined" ) {
 
if ( typeof mw.config.values.wbEntity !=  "undefined" ) {
Line 76: Line 78:  
}
 
}
    +
// ?
 
function iterAcheckBC ( rel_A, rel_B, rel_C, to_check ) {
 
function iterAcheckBC ( rel_A, rel_B, rel_C, to_check ) {
 
if ( typeof mw.config.values.wbEntity !=  "undefined" ) {
 
if ( typeof mw.config.values.wbEntity !=  "undefined" ) {

Navigation menu