2013-07-01 3 views
-1

XML 파일을 RDF로 변환하려고했지만 거기에서 어떻게하는지 이해하지 못했습니다. 여기처음부터 RDF

나는 처음부터 내 자신의 RDF를 만들기 위해 시작하게 :

<?xml version="1.0" encoding="UTF-8"?> 

    <rdf:RDF 
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
    xmlns:db="http://drugbank.ca#"> 

    <rdf:Description rdf:about="http://drugbank.ca/DB00001"> 
     <db:name>Lepirudin</db:name> 
     <db:description:>Lepirudin is identical to natural hirudin except for substitution of leucine for isoleucine at the N-terminal end of the molecule and the absence of a sulfate group on the tyrosine at position 63. It is produced via yeast cells.</db:description> 
     <db:substrate></db:substrate> 
     <db:enzymes></db:enzymes> 
     <db:mechanism-of-action>Lepirudin forms a stable non-covalent complex with alpha-thrombin, thereby abolishing its ability to cleave fibrinogen and initiate the clotting cascade. The inhibition of thrombin prevents the blood clotting cascade.</db:mechanism-of-action> 
     <db:targets>inhibitor # Turpie AG: Anticoagulants in acute coronary syndromes. Am J Cardiol. 1999 Sep 2;84(5A):2M-6M. "Pubmed":http://www.ncbi.nlm.nih.gov/pubmed/10505536 
    # Warkentin TE: Venous thromboembolism in heparin-induced thrombocytopenia. Curr Opin Pulm Med. 2000 Jul;6(4):343-51. "Pubmed":http://www.ncbi.nlm.nih.gov/pubmed/10912644 
    # Eriksson BI: New therapeutic options in deep vein thrombosis prophylaxis. Semin Hematol. 2000 Jul;37(3 Suppl 5):7-9. "Pubmed":http://www.ncbi.nlm.nih.gov/pubmed/11055889 
    # Fabrizio MC: Use of ecarin clotting time (ECT) with lepirudin therapy in heparin-induced thrombocytopenia and cardiopulmonary bypass. J Extra Corpor Technol. 2001 May;33(2):117-25. "Pubmed":http://www.ncbi.nlm.nih.gov/pubmed/11467439 
    # Szaba FM, Smiley ST: Roles for thrombin and fibrin(ogen) in cytokine/chemokine production and macrophage adhesion in vivo. Blood. 2002 Feb 1;99(3):1053-9. "Pubmed":http://www.ncbi.nlm.nih.gov/pubmed/11807012 
    # Chen X, Ji ZL, Chen YZ: TTD: Therapeutic Target Database. Nucleic Acids Res. 2002 Jan 1;30(1):412-5. "Pubmed":http://www.ncbi.nlm.nih.gov/pubmed/11752352 yes</db:targets> 
    </rdf:Description> 

    <rdf:Description rdf:about="http://drugbank.ca/DB00002> 
     <db:name></db:name> 
     <db:description:></db:description> 
     <db:substrate></db:substrate> 
     <db:enzymes></db:enzymes> 
     <db:mechanism-of-action></db:mechanism-of-action> 
     <db:targets></db:targets> 
    </rdf:Description> 

    . 
    . 
    . 


    </rdf:RDF> 

내가 (첫 번째와 마지막 시간) ... 어떤 팁을 많이 도움이 스르르 시작했다. 감사합니다

+0

문제가 있습니까? –

답변

1

제가 권하고 싶은 첫 번째 것은 W3C validator을 사용하는 것입니다. 그렇게하면 RDF에 몇 가지 오류가 있음을 알 수 있습니다. 이 줄은 오류가 있습니다 :

<db:description:>Lepirudin .. 
<rdf:Description rdf:about="http://drugbank.ca/DB00002> 
<db:description:></db:description> 

둘째, RDF 구문을 강조하는 텍스트 편집기를 사용하는 것이 좋습니다 (이맥스는 잘 작동합니다). 그렇게하면 구문 오류가 어디에 있는지 쉽게 알 수 있습니다.

+0

감사합니다. –