Hi all members,

I thank you very much for your help .

Prof Milos is one of the  very reputable personalities for my help.

I apologize to the  my many questions to yours but help me a lot.I test my
CSV data n virtuoso open source.

I converted my data into relational database and then use linked data views
to generate RDF triples by R2RML.

And this result show below,

@prefix rr: <http://www.w3.org/ns/r2rml#> .

@prefix HIFM: <http://localhost:8890/schemas/HIFM/> .

@prefix hifm-stat: <http://localhost:8890/HIFM/stat#> .

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

@prefix void: <http://rdfs.org/ns/void#> .

@prefix scovo: <http://purl.org/NET/scovo#> .

@prefix aowl: <http://bblfish.net/work/atom-owl/2006-06-06/> .



<#TriplesMaptest_result_csv> a rr:TriplesMap; rr:logicalTable [
rr:tableSchema "HIFM" ; rr:tableOwner "DBA" ; rr:tableName
"test_result_csv" ];

rr:subjectMap [ rr:termType rr:IRI  ; rr:template "
http://localhost:8890/HIFM/test_result_csv/IDENTIFICATION={IDENTIFICATION}";;
rr:class HIFM:test_result_csv; rr:graph <http://localhost:8890/HIFM#> ];

rr:predicateObjectMap [ rr:predicateMap [ rr:constant HIFM:identification ]
; rr:objectMap [ rr:column "IDENTIFICATION" ]; ] ;

rr:predicateObjectMap [ rr:predicateMap [ rr:constant HIFM:atc_code ] ;
rr:objectMap [ rr:column "ATC_CODE" ]; ] ;

rr:predicateObjectMap [ rr:predicateMap [ rr:constant HIFM:generic_name_inn
] ; rr:objectMap [ rr:column "GENERIC_NAME_INN" ]; ] ;

rr:predicateObjectMap [ rr:predicateMap [ rr:constant
HIFM:pharmaceutical_dosage_form ] ; rr:objectMap [ rr:column
"PHARMACEUTICAL_DOSAGE_FORM" ]; ] ;

rr:predicateObjectMap [ rr:predicateMap [ rr:constant HIFM:reliability ] ;
rr:objectMap [ rr:column "RELIABILITY" ]; ] ;

rr:predicateObjectMap [ rr:predicateMap [ rr:constant
HIFM:brand_name_of_the_drug ] ; rr:objectMap [ rr:column
"BRAND_NAME_OF_THE_DRUG" ]; ] ;

rr:predicateObjectMap [ rr:predicateMap [ rr:constant HIFM:packing ] ;
rr:objectMap [ rr:column "PACKING" ]; ] ;

rr:predicateObjectMap [ rr:predicateMap [ rr:constant
HIFM:ref_price_per_pack_without ] ; rr:objectMap [ rr:column
"REF_PRICE_PER_PACK_WITHOUT" ]; ] ;

rr:predicateObjectMap [ rr:predicateMap [ rr:constant
HIFM:ref_price_per_pack_with ] ; rr:objectMap [ rr:column
"REF_PRICE_PER_PACK_WITH" ]; ] .



But, there was error appear   when I validate R2RML.

This is error “Property <http://www.w3.org/ns/r2rml#termType> is not know
(typo in its IRI?)”.

I don’t know what the reason for this error is.

Also, I deleted this line “rr:termType rr:IRI  ;”  and then R2RML validate
correctly. But triples appear in incorrect form.

Can you help me to understand this error?



Thanks for your help in advance.







Best Regards,

--

Nashwa Nabil,

Teaching Assistant,

Information System Department,

Faculty of computer and Information,

On Wed, Dec 30, 2015 at 7:48 PM, Nashwa Nabel <nn...@fayoum.edu.eg> wrote:

> Hi all members,
>
> I test my CSV data n virtuoso open source.
>
> I converted my data into relational database and then use linked data
> views to generate RDF triples by R2RML.
>
> And this result show below,
>
> @prefix rr: <http://www.w3.org/ns/r2rml#> .
>
> @prefix HIFM: <http://localhost:8890/schemas/HIFM/> .
>
> @prefix hifm-stat: <http://localhost:8890/HIFM/stat#> .
>
> @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
>
> @prefix void: <http://rdfs.org/ns/void#> .
>
> @prefix scovo: <http://purl.org/NET/scovo#> .
>
> @prefix aowl: <http://bblfish.net/work/atom-owl/2006-06-06/> .
>
>
>
> <#TriplesMaptest_result_csv> a rr:TriplesMap; rr:logicalTable [
> rr:tableSchema "HIFM" ; rr:tableOwner "DBA" ; rr:tableName
> "test_result_csv" ];
>
> rr:subjectMap [ rr:termType rr:IRI  ; rr:template "
> http://localhost:8890/HIFM/test_result_csv/IDENTIFICATION={IDENTIFICATION}";;
> rr:class HIFM:test_result_csv; rr:graph <http://localhost:8890/HIFM#> ];
>
> rr:predicateObjectMap [ rr:predicateMap [ rr:constant HIFM:identification
> ] ; rr:objectMap [ rr:column "IDENTIFICATION" ]; ] ;
>
> rr:predicateObjectMap [ rr:predicateMap [ rr:constant HIFM:atc_code ] ;
> rr:objectMap [ rr:column "ATC_CODE" ]; ] ;
>
> rr:predicateObjectMap [ rr:predicateMap [ rr:constant
> HIFM:generic_name_inn ] ; rr:objectMap [ rr:column "GENERIC_NAME_INN" ]; ] ;
>
> rr:predicateObjectMap [ rr:predicateMap [ rr:constant
> HIFM:pharmaceutical_dosage_form ] ; rr:objectMap [ rr:column
> "PHARMACEUTICAL_DOSAGE_FORM" ]; ] ;
>
> rr:predicateObjectMap [ rr:predicateMap [ rr:constant HIFM:reliability ] ;
> rr:objectMap [ rr:column "RELIABILITY" ]; ] ;
>
> rr:predicateObjectMap [ rr:predicateMap [ rr:constant
> HIFM:brand_name_of_the_drug ] ; rr:objectMap [ rr:column
> "BRAND_NAME_OF_THE_DRUG" ]; ] ;
>
> rr:predicateObjectMap [ rr:predicateMap [ rr:constant HIFM:packing ] ;
> rr:objectMap [ rr:column "PACKING" ]; ] ;
>
> rr:predicateObjectMap [ rr:predicateMap [ rr:constant
> HIFM:ref_price_per_pack_without ] ; rr:objectMap [ rr:column
> "REF_PRICE_PER_PACK_WITHOUT" ]; ] ;
>
> rr:predicateObjectMap [ rr:predicateMap [ rr:constant
> HIFM:ref_price_per_pack_with ] ; rr:objectMap [ rr:column
> "REF_PRICE_PER_PACK_WITH" ]; ] .
>
>
>
> But, there was error appear   when I validate R2RML.
>
> This is error “Property <http://www.w3.org/ns/r2rml#termType> is not know
> (typo in its IRI?)”.
>
> I don’t know what the reason for this error is.
>
> Also, I deleted this line “rr:termType rr:IRI  ;”  and then R2RML validate
> correctly. But triples appear in incorrect form.
>
> This is form of triples.
>
> Can you help me to understand this error?
>
>
>
> Thanks for your help in advance.
>
>
>
>
>
>
>
> Best Regards,
>
> --
>
> Nashwa Nabil,
>
> Teaching Assistant,
>
> Information System Department,
>
> Faculty of computer and Information,
>

-- 
www.fayoum.edu.eg

------------------------------------------------------------------------------
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to