Changeset 7723 for mauRepo/xml2owl
- Timestamp:
- 11/11/10 16:34:31 (10 years ago)
- Location:
- mauRepo/xml2owl/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
mauRepo/xml2owl/trunk/protege.properties
r7721 r7723 1 1 #Protege Properties 2 # Wed Nov 10 13:54:06GMT 20102 #Thu Nov 11 16:32:44 GMT 2010 3 3 history.projects.reopen=file\:/home/users/mnagni/workspace/ESGGateway/metafor/examples/newspaper/newspaper.pprj,file\:/home/users/mnagni/workspace/ESGGateway/metafor/examples/pizza/pizza.owl.pprj 4 4 SwitchableClassDefinitionType=edu.stanford.smi.protegex.owl.ui.cls.LogicClassDefinitionWidgetType -
mauRepo/xml2owl/trunk/src/test/resources/ingesterConfig.xml
r7721 r7723 258 258 259 259 260 260 <!-- MODEL_COMPONENT --> 261 261 <!-- MODEL_COMPONENT.labels --> 262 <!-- model & childmodel--> 262 263 <ndg:addLabel> 263 264 <ndg:ontSubject> … … 266 267 <ndg:xquery> 267 268 <![CDATA[ 268 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 269 for $sn in //CIMRecord/modelComponent/shortName 270 return 271 concat($sn, ";;", $sn) 269 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 270 for $comp in //CIMRecord 271 let $res := for $item in $comp/modelComponent | $comp/modelComponent/childComponent/modelComponent 272 return 273 concat($item/shortName, ";;", $item/shortName) 274 return $res 272 275 ]]> 273 276 </ndg:xquery> 274 </ndg:addLabel> 275 276 277 <!-- child model --> 278 <ndg:addLabel> 279 <ndg:ontSubject> 280 http://www.earthsystemgrid.org/esg.owl#Model 281 </ndg:ontSubject> 282 <ndg:xquery> 283 <![CDATA[ 284 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 285 for $sn in //CIMRecord/modelComponent/childComponent/modelComponent/shortName 286 return 287 concat($sn, ";;", $sn) 288 ]]> 289 </ndg:xquery> 290 </ndg:addLabel> 291 277 </ndg:addLabel> 292 278 <!-- child's model component--> 293 <!-- need to verify how recursively collect all the child's childs -->294 279 <ndg:addLabel> 295 280 <ndg:ontSubject> … … 307 292 </ndg:addLabel> 308 293 294 <!-- model & childmodel & child's model --> 295 <ndg:addLabel> 296 <ndg:ontSubject> 297 http://www.earthsystemgrid.org/esg.owl#Agency 298 </ndg:ontSubject> 299 <ndg:xquery> 300 <![CDATA[ 301 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 302 declare namespace gmd="http://www.isotc211.org/2005/gmd"; 303 declare namespace gco="http://www.isotc211.org/2005/gco"; 304 for $comp in //CIMRecord 305 let $nodes := for $res in $comp/modelComponent | $comp/modelComponent//childComponent/modelComponent 306 let $res := for $item in $res//responsibleParty/gmd:CI_ResponsibleParty 307 let $roles := for $role in $item/gmd:role/gmd:CI_RoleCode/@codeListValue 308 return 309 if ($role = 'funder') 310 then if (exists($item/gmd:organizationName/gco:CharacterString)) 311 then concat($item/gmd:organizationName/gco:CharacterString, ";;", $item/gmd:organizationName/gco:CharacterString) 312 else if (exists($item/gmd:individualName/gco:CharacterString)) 313 then concat($item/gmd:individualName/gco:CharacterString, ";;", $item/gmd:individualName/gco:CharacterString) 314 else empty 315 else empty 316 return $roles 317 return $res 318 return $nodes]]> 319 </ndg:xquery> 320 </ndg:addLabel> 321 322 323 324 <!-- MODEL_COMPONENT.comment --> 325 <!-- model & childmodel --> 326 <ndg:addComment> 327 <ndg:ontSubject> 328 http://www.earthsystemgrid.org/esg.owl#Model 329 </ndg:ontSubject> 330 <ndg:xquery> 331 <![CDATA[ 332 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 333 for $comp in //CIMRecord 334 let $res := for $item in $comp/modelComponent | $comp/modelComponent/childComponent/modelComponent 335 return 336 concat($item/shortName, ";;", $item/description) 337 return $res ]]> 338 </ndg:xquery> 339 </ndg:addComment> 340 <!-- child's model component--> 341 <ndg:addComment> 342 <ndg:ontSubject> 343 http://www.earthsystemgrid.org/esg.owl#ModelComponent 344 </ndg:ontSubject> 345 <ndg:xquery> 346 <![CDATA[ 347 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 348 for $rt in //CIMRecord/modelComponent/childComponent/modelComponent 349 for $comp in $rt//childComponent/modelComponent 350 return 351 concat($comp/shortName, ";;", $comp/description)]]> 352 </ndg:xquery> 353 </ndg:addComment> 354 355 356 <!-- MODEL_COMPONENT.literals --> 357 <!-- model and childmodel --> 358 <ndg:addTripleLiteral> 359 <ndg:ontSubject> 360 http://www.earthsystemgrid.org/esg.owl#Model 361 </ndg:ontSubject> 362 <ndg:ontPredicate> 363 http://www.earthsystemgrid.org/esg.owl#hasFullName 364 </ndg:ontPredicate> 365 <ndg:xquery> 366 <![CDATA[ 367 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 368 for $comp in //CIMRecord 369 let $res := for $item in $comp/modelComponent | $comp/modelComponent/childComponent/modelComponent 370 return 371 concat($item/shortName, ";;", $item/longName) 372 return $res]]> 373 </ndg:xquery> 374 </ndg:addTripleLiteral> 375 <!-- child's model component--> 376 <ndg:addTripleLiteral> 377 <ndg:ontSubject> 378 http://www.earthsystemgrid.org/esg.owl#ModelComponent 379 </ndg:ontSubject> 380 <ndg:ontPredicate> 381 http://www.earthsystemgrid.org/esg.owl#hasFullName 382 </ndg:ontPredicate> 383 <ndg:xquery> 384 <![CDATA[ 385 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 386 for $rt in //CIMRecord/modelComponent/childComponent/modelComponent 387 for $comp in $rt//childComponent/modelComponent 388 return 389 concat($comp/shortName, ";;", $comp/longName)]]> 390 </ndg:xquery> 391 </ndg:addTripleLiteral> 392 393 <!-- model & childmodel & child's model --> 394 <ndg:addTripleLiteral> 395 <ndg:ontSubject> 396 http://www.earthsystemgrid.org/esg.owl#Contact 397 </ndg:ontSubject> 398 <ndg:ontPredicate> 399 http://www.earthsystemgrid.org/esg.owl#hasContactName 400 </ndg:ontPredicate> 401 <ndg:xquery> 402 <![CDATA[ 403 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 404 declare namespace gmd="http://www.isotc211.org/2005/gmd"; 405 declare namespace gco="http://www.isotc211.org/2005/gco"; 406 for $comp in //CIMRecord 407 let $nodes := for $res in $comp/modelComponent | $comp/modelComponent//childComponent/modelComponent 408 let $res := for $item in $res/responsibleParty/gmd:CI_ResponsibleParty 409 let $roles := for $role in $item/gmd:role/gmd:CI_RoleCode/@codeListValue 410 return 411 if ($role = 'contact' or $role = 'author' or $role = 'PI') 412 then if (exists($item/gmd:organizationName/gco:CharacterString)) 413 then concat($item/gmd:organizationName/gco:CharacterString, ";;", $item/gmd:organizationName/gco:CharacterString) 414 else empty 415 else empty 416 return $roles 417 return $res 418 return $nodes]]> 419 </ndg:xquery> 420 </ndg:addTripleLiteral> 421 422 <!-- model & childmodel & child's model --> 423 <ndg:addTripleLiteral> 424 <ndg:ontSubject> 425 http://www.earthsystemgrid.org/esg.owl#Contact 426 </ndg:ontSubject> 427 <ndg:ontPredicate> 428 http://www.earthsystemgrid.org/esg.owl#hasEmail 429 </ndg:ontPredicate> 430 <ndg:xquery> 431 <![CDATA[ 432 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 433 declare namespace gmd="http://www.isotc211.org/2005/gmd"; 434 declare namespace gco="http://www.isotc211.org/2005/gco"; 435 for $comp in //CIMRecord 436 let $nodes := for $res in $comp/modelComponent | $comp/modelComponent//childComponent/modelComponent 437 let $res := for $item in $res/responsibleParty/gmd:CI_ResponsibleParty 438 let $roles := for $role in $item/gmd:role/gmd:CI_RoleCode/@codeListValue 439 return 440 if ($role = 'contact' or $role = 'author' or $role = 'PI') 441 then if (exists($item/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:electronicMailAddress/gco:CharacterString)) 442 then concat($item/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:electronicMailAddress/gco:CharacterString, ";;", $item/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:electronicMailAddress/gco:CharacterString) 443 else empty 444 else empty 445 return $roles 446 return $res 447 return $nodes]]> 448 </ndg:xquery> 449 </ndg:addTripleLiteral> 450 451 <!-- model and childmodel --> 452 <ndg:addTripleLiteral> 453 <ndg:ontSubject> 454 http://www.earthsystemgrid.org/esg.owl#Model 455 </ndg:ontSubject> 456 <ndg:ontPredicate> 457 http://www.earthsystemgrid.org/esg.owl#hasInstitution 458 </ndg:ontPredicate> 459 <ndg:xquery> 460 <![CDATA[ 461 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 462 declare namespace gmd="http://www.isotc211.org/2005/gmd"; 463 declare namespace gco="http://www.isotc211.org/2005/gco"; 464 for $comp in //CIMRecord 465 let $nodes := for $res in $comp/modelComponent | $comp/modelComponent/childComponent/modelComponent 466 let $res := for $item in $res/responsibleParty/gmd:CI_ResponsibleParty 467 let $roles := for $role in $item/gmd:role/gmd:CI_RoleCode/@codeListValue 468 return 469 if ($role = 'centre') 470 then concat($res/shortName, ";;", $item/gmd:individualName/gco:CharacterString) 471 else empty 472 return $roles 473 return $res 474 return $nodes]]> 475 </ndg:xquery> 476 </ndg:addTripleLiteral> 477 <!-- child's model component--> 478 <ndg:addTripleLiteral> 479 <ndg:ontSubject> 480 http://www.earthsystemgrid.org/esg.owl#ModelComponent 481 </ndg:ontSubject> 482 <ndg:ontPredicate> 483 http://www.earthsystemgrid.org/esg.owl#hasInstitution 484 </ndg:ontPredicate> 485 <ndg:xquery> 486 <![CDATA[ 487 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 488 declare namespace gmd="http://www.isotc211.org/2005/gmd"; 489 declare namespace gco="http://www.isotc211.org/2005/gco"; 490 for $comp in //CIMRecord/modelComponent/childComponent/modelComponent 491 let $nodes := for $res in $comp//childComponent/modelComponent 492 let $res := for $item in $res/responsibleParty/gmd:CI_ResponsibleParty 493 let $roles := for $role in $item/gmd:role/gmd:CI_RoleCode/@codeListValue 494 return 495 if ($role = 'centre') 496 then concat($res/shortName, ";;", $item/gmd:individualName/gco:CharacterString) 497 else empty 498 return $roles 499 return $res 500 return $nodes]]> 501 </ndg:xquery> 502 </ndg:addTripleLiteral> 503 504 505 <!-- model and childmodel --> 506 <ndg:addTripleLiteral> 507 <ndg:ontSubject> 508 http://www.earthsystemgrid.org/esg.owl#Model 509 </ndg:ontSubject> 510 <ndg:ontPredicate> 511 http://www.earthsystemgrid.org/esg.owl#hasReference 512 </ndg:ontPredicate> 513 <ndg:xquery> 514 <![CDATA[ 515 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 516 declare namespace gmd="http://www.isotc211.org/2005/gmd"; 517 declare namespace gco="http://www.isotc211.org/2005/gco"; 518 for $comp in //CIMRecord 519 let $nodes := for $res in $comp/modelComponent | $comp/modelComponent//childComponent/modelComponent 520 let $res := for $item in $res/citation 521 return 522 concat($res/shortName, ";;", 523 $item/gmd:CI_Citation/gmd:collectiveTitle/gco:CharacterString, " ", $item/gmd:CI_Citation/gmd:citationDetails/gco:CharacterString) 524 return $res 525 return $nodes]]> 526 </ndg:xquery> 527 </ndg:addTripleLiteral> 528 529 530 <!-- child's model component--> 531 <ndg:addTripleLiteral> 532 <ndg:ontSubject> 533 http://www.earthsystemgrid.org/esg.owl#ModelComponent 534 </ndg:ontSubject> 535 <ndg:ontPredicate> 536 http://www.earthsystemgrid.org/esg.owl#hasReference 537 </ndg:ontPredicate> 538 <ndg:xquery> 539 <![CDATA[ 540 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 541 declare namespace gmd="http://www.isotc211.org/2005/gmd"; 542 declare namespace gco="http://www.isotc211.org/2005/gco"; 543 for $comp in //CIMRecord/modelComponent/childComponent/modelComponent 544 let $nodes := for $res in $comp//childComponent/modelComponent 545 let $res := for $item in $res/responsibleParty/gmd:CI_ResponsibleParty 546 let $roles := for $role in $item/gmd:role/gmd:CI_RoleCode/@codeListValue 547 return 548 if ($role = 'centre') 549 then concat($res/shortName, ";;", $item/gmd:individualName/gco:CharacterString) 550 else empty 551 return $roles 552 return $res 553 return $nodes]]> 554 </ndg:xquery> 555 </ndg:addTripleLiteral> 556 557 558 559 560 <!-- MODEL_COMPONENT.triples --> 561 <!-- model and childmodel --> 562 <ndg:addTriple> 563 <ndg:ontSubject> 564 http://www.earthsystemgrid.org/esg.owl#Model 565 </ndg:ontSubject> 566 <ndg:ontPredicate>http://www.earthsystemgrid.org/esg.owl#hasPhysicalDomain 567 </ndg:ontPredicate> 568 <ndg:ontObject> 569 http://www.earthsystemgrid.org/esg.owl#PhysicalDomain 570 </ndg:ontObject> 571 <ndg:xquery> 572 <![CDATA[ 573 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 574 for $comp in //CIMRecord 575 let $nodes := $comp/modelComponent | $comp/modelComponent/childComponent/modelComponent 576 let $res := for $item in $nodes 577 let $types := for $type in $item/type/@value 578 return 579 if ($type = 'AtmosphericChemistry' or $type = 'atmosphere' or $type = 'Atmosphere' or $type = 'Aerosols') 580 then concat($item/shortName, ";;", 'Atmosphere') 581 else if ($type = 'LandIce') 582 then concat($item/shortName, ";;", 'Ice') 583 else if ($type = 'LandSurface') 584 then concat($item/shortName, ";;", 'Land') 585 else if ($type = 'ocean' or $type = 'OceanBiogeoChemistry') 586 then concat($item/shortName, ";;", 'Ocean') 587 else empty 588 return $types 589 return $res]]> 590 </ndg:xquery> 591 </ndg:addTriple> 592 <!-- child's model component--> 593 <ndg:addTriple> 594 <ndg:ontSubject> 595 http://www.earthsystemgrid.org/esg.owl#ModelComponent 596 </ndg:ontSubject> 597 <ndg:ontPredicate>http://www.earthsystemgrid.org/esg.owl#hasPhysicalDomain 598 </ndg:ontPredicate> 599 <ndg:ontObject> 600 http://www.earthsystemgrid.org/esg.owl#PhysicalDomain 601 </ndg:ontObject> 602 <ndg:xquery> 603 <![CDATA[ 604 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 605 for $comp in //CIMRecord/modelComponent/childComponent/modelComponent 606 let $nodes := $comp//childComponent/modelComponent 607 let $res := for $item in $nodes 608 let $types := for $type in $item/type/@value 609 return 610 if ($type = 'AtmosphericChemistry' or $type = 'atmosphere' or $type = 'Atmosphere' or $type = 'Aerosols') 611 then concat($item/shortName, ";;", 'Atmosphere') 612 else if ($type = 'LandIce') 613 then concat($item/shortName, ";;", 'Ice') 614 else if ($type = 'LandSurface') 615 then concat($item/shortName, ";;", 'Land') 616 else if ($type = 'ocean' or $type = 'OceanBiogeoChemistry') 617 then concat($item/shortName, ";;", 'Ocean') 618 else empty 619 return $types 620 return $res]]> 621 </ndg:xquery> 622 </ndg:addTriple> 623 624 625 <!-- model and childmodel --> 626 <ndg:addTriple> 627 <ndg:ontSubject> 628 http://www.earthsystemgrid.org/esg.owl#Model 629 </ndg:ontSubject> 630 <ndg:ontPredicate>http://www.earthsystemgrid.org/esg.owl#hasTopic 631 </ndg:ontPredicate> 632 <ndg:ontObject> 633 http://www.earthsystemgrid.org/esg.owl#Topic 634 </ndg:ontObject> 635 <ndg:xquery> 636 <![CDATA[ 637 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 638 for $comp in //CIMRecord 639 let $nodes := $comp/modelComponent | $comp/modelComponent/childComponent/modelComponent 640 let $res := for $item in $nodes 641 let $types := for $type in $item/type/@value 642 return 643 if ($type = 'AtmosphericChemistry' or $type = 'atmosphere' or $type = 'Atmosphere') 644 then concat($item/shortName, ";;", 'atmos') 645 else if ($type = 'LandIce') 646 then concat($item/shortName, ";;", 'landice') 647 else if ($type = 'LandSurface') 648 then concat($item/shortName, ";;", 'land') 649 else if ($type = 'ocean') 650 then concat($item/shortName, ";;", 'ocean') 651 else empty 652 return $types 653 return $res]]> 654 </ndg:xquery> 655 </ndg:addTriple> 656 <!-- child's model component--> 657 <ndg:addTriple> 658 <ndg:ontSubject> 659 http://www.earthsystemgrid.org/esg.owl#ModelComponent 660 </ndg:ontSubject> 661 <ndg:ontPredicate>http://www.earthsystemgrid.org/esg.owl#hasTopic 662 </ndg:ontPredicate> 663 <ndg:ontObject> 664 http://www.earthsystemgrid.org/esg.owl#Topic 665 </ndg:ontObject> 666 <ndg:xquery> 667 <![CDATA[ 668 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 669 for $comp in //CIMRecord/modelComponent/childComponent/modelComponent 670 let $nodes := $comp//childComponent/modelComponent 671 let $res := for $item in $nodes 672 let $types := for $type in $item/type/@value 673 return 674 if ($type = 'AtmosphericChemistry' or $type = 'atmosphere' or $type = 'Atmosphere') 675 then concat($item/shortName, ";;", 'atmos') 676 else if ($type = 'LandIce') 677 then concat($item/shortName, ";;", 'landice') 678 else if ($type = 'LandSurface') 679 then concat($item/shortName, ";;", 'land') 680 else if ($type = 'ocean') 681 then concat($item/shortName, ";;", 'ocean') 682 else empty 683 return $types 684 return $res]]> 685 </ndg:xquery> 686 </ndg:addTriple> 687 688 689 <!-- model and childmodel --> 690 <ndg:addTriple> 691 <ndg:ontSubject> 692 http://www.earthsystemgrid.org/esg.owl#Model 693 </ndg:ontSubject> 694 <ndg:ontPredicate>http://www.earthsystemgrid.org/esg.owl#hasFundingSource 695 </ndg:ontPredicate> 696 <ndg:ontObject> 697 http://www.earthsystemgrid.org/esg.owl#Agency 698 </ndg:ontObject> 699 <ndg:xquery> 700 <![CDATA[ 701 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 702 declare namespace gmd="http://www.isotc211.org/2005/gmd"; 703 declare namespace gco="http://www.isotc211.org/2005/gco"; 704 for $comp in //CIMRecord 705 let $nodes := for $res in $comp/modelComponent | $comp/modelComponent/childComponent/modelComponent 706 let $res := for $item in $res//responsibleParty/gmd:CI_ResponsibleParty 707 let $roles := for $role in $item/gmd:role/gmd:CI_RoleCode/@codeListValue 708 return 709 if ($role = 'funder') 710 then if (exists($item/gmd:organizationName/gco:CharacterString)) 711 then concat($res/shortName, ";;", $item/gmd:organizationName/gco:CharacterString) 712 else if (exists($item/gmd:individualName/gco:CharacterString)) 713 then concat($res/shortName, ";;", $item/gmd:individualName/gco:CharacterString) 714 else empty 715 else empty 716 return $roles 717 return $res 718 return $nodes]]> 719 </ndg:xquery> 720 </ndg:addTriple> 721 <!-- model and childmodel --> 722 <ndg:addTriple> 723 <ndg:ontSubject> 724 http://www.earthsystemgrid.org/esg.owl#ModelComponent 725 </ndg:ontSubject> 726 <ndg:ontPredicate>http://www.earthsystemgrid.org/esg.owl#hasFundingSource 727 </ndg:ontPredicate> 728 <ndg:ontObject> 729 http://www.earthsystemgrid.org/esg.owl#Agency 730 </ndg:ontObject> 731 <ndg:xquery> 732 <![CDATA[ 733 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 734 declare namespace gmd="http://www.isotc211.org/2005/gmd"; 735 declare namespace gco="http://www.isotc211.org/2005/gco"; 736 for $comp in //CIMRecord/modelComponent/childComponent/modelComponent 737 let $nodes := for $res in $comp//childComponent/modelComponent 738 let $res := for $item in $res//responsibleParty/gmd:CI_ResponsibleParty 739 let $roles := for $role in $item/gmd:role/gmd:CI_RoleCode/@codeListValue 740 return 741 if ($role = 'funder') 742 then if (exists($item/gmd:organizationName/gco:CharacterString)) 743 then concat($res/shortName, ";;", $item/gmd:organizationName/gco:CharacterString) 744 else if (exists($item/gmd:individualName/gco:CharacterString)) 745 then concat($res/shortName, ";;", $item/gmd:individualName/gco:CharacterString) 746 else empty 747 else empty 748 return $roles 749 return $res 750 return $nodes]]> 751 </ndg:xquery> 752 </ndg:addTriple> 753 754 <!-- model and childmodel --> 755 <ndg:addTriple> 756 <ndg:ontSubject> 757 http://www.earthsystemgrid.org/esg.owl#Model 758 </ndg:ontSubject> 759 <ndg:ontPredicate>http://www.earthsystemgrid.org/esg.owl#hasContactObject 760 </ndg:ontPredicate> 761 <ndg:ontObject> 762 http://www.earthsystemgrid.org/esg.owl#Contact 763 </ndg:ontObject> 764 <ndg:xquery> 765 <![CDATA[ 766 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 767 declare namespace gmd="http://www.isotc211.org/2005/gmd"; 768 declare namespace gco="http://www.isotc211.org/2005/gco"; 769 for $comp in //CIMRecord 770 let $nodes := for $res in $comp/modelComponent | $comp/modelComponent/childComponent/modelComponent 771 let $res := for $item in $res//responsibleParty/gmd:CI_ResponsibleParty 772 let $roles := for $role in $item/gmd:role/gmd:CI_RoleCode/@codeListValue 773 return 774 if ($role = 'contact') 775 then concat($res/shortName, ";;", $item/gmd:individualName/gco:CharacterString) 776 else empty 777 return $roles 778 return $res 779 return $nodes]]> 780 </ndg:xquery> 781 </ndg:addTriple> 782 <!-- model and childmodel --> 783 <ndg:addTriple> 784 <ndg:ontSubject> 785 http://www.earthsystemgrid.org/esg.owl#ModelComponent 786 </ndg:ontSubject> 787 <ndg:ontPredicate>http://www.earthsystemgrid.org/esg.owl#hasContactObject 788 </ndg:ontPredicate> 789 <ndg:ontObject> 790 http://www.earthsystemgrid.org/esg.owl#Contact 791 </ndg:ontObject> 792 <ndg:xquery> 793 <![CDATA[ 794 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 795 declare namespace gmd="http://www.isotc211.org/2005/gmd"; 796 declare namespace gco="http://www.isotc211.org/2005/gco"; 797 for $comp in //CIMRecord/modelComponent/childComponent/modelComponent 798 let $nodes := for $res in $comp//childComponent/modelComponent 799 let $res := for $item in $res//responsibleParty/gmd:CI_ResponsibleParty 800 let $roles := for $role in $item/gmd:role/gmd:CI_RoleCode/@codeListValue 801 return 802 if ($role = 'contact') 803 then concat($res/shortName, ";;", $item/gmd:individualName/gco:CharacterString) 804 else empty 805 return $roles 806 return $res 807 return $nodes]]> 808 </ndg:xquery> 809 </ndg:addTriple> 810 811 812 <!-- model and childmodel --> 813 <ndg:addTriple> 814 <ndg:ontSubject> 815 http://www.earthsystemgrid.org/esg.owl#Model 816 </ndg:ontSubject> 817 <ndg:ontPredicate>http://www.earthsystemgrid.org/esg.owl#hasPI 818 </ndg:ontPredicate> 819 <ndg:ontObject> 820 http://www.earthsystemgrid.org/esg.owl#Contact 821 </ndg:ontObject> 822 <ndg:xquery> 823 <![CDATA[ 824 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 825 declare namespace gmd="http://www.isotc211.org/2005/gmd"; 826 declare namespace gco="http://www.isotc211.org/2005/gco"; 827 for $comp in //CIMRecord 828 let $nodes := for $res in $comp/modelComponent | $comp/modelComponent/childComponent/modelComponent 829 let $res := for $item in $res//responsibleParty/gmd:CI_ResponsibleParty 830 let $roles := for $role in $item/gmd:role/gmd:CI_RoleCode/@codeListValue 831 return 832 if ($role = 'author' or $role = 'PI') 833 then concat($res/shortName, ";;", $item/gmd:individualName/gco:CharacterString) 834 else empty 835 return $roles 836 return $res 837 return $nodes]]> 838 </ndg:xquery> 839 </ndg:addTriple> 840 <!-- model and childmodel --> 841 <ndg:addTriple> 842 <ndg:ontSubject> 843 http://www.earthsystemgrid.org/esg.owl#ModelComponent 844 </ndg:ontSubject> 845 <ndg:ontPredicate>http://www.earthsystemgrid.org/esg.owl#hasPI 846 </ndg:ontPredicate> 847 <ndg:ontObject> 848 http://www.earthsystemgrid.org/esg.owl#Contact 849 </ndg:ontObject> 850 <ndg:xquery> 851 <![CDATA[ 852 declare default element namespace "http://www.metaforclimate.eu/schema/cim/1.5"; 853 declare namespace gmd="http://www.isotc211.org/2005/gmd"; 854 declare namespace gco="http://www.isotc211.org/2005/gco"; 855 for $comp in //CIMRecord/modelComponent/childComponent/modelComponent 856 let $nodes := for $res in $comp//childComponent/modelComponent 857 let $res := for $item in $res//responsibleParty/gmd:CI_ResponsibleParty 858 let $roles := for $role in $item/gmd:role/gmd:CI_RoleCode/@codeListValue 859 return 860 if ($role = 'author' or $role = 'PI') 861 then concat($res/shortName, ";;", $item/gmd:individualName/gco:CharacterString) 862 else empty 863 return $roles 864 return $res 865 return $nodes]]> 866 </ndg:xquery> 867 </ndg:addTriple> 868 869 <!-- hasPhysicalDomain ???? --> 309 870 310 871 </ndg:root>
Note: See TracChangeset
for help on using the changeset viewer.