LDPath doesn't extract some data from RDF

11 views
Skip to first unread message

Alex Donnini

unread,
Jan 10, 2014, 2:15:39 AM1/10/14
to lmf-...@googlegroups.com
This is an RDF fragment of my dataset (tvo is our ontology):
<rdf:type rdf:resource="owl:NamedIndividual"/>
<rdfs:label rdf:datatype="xsd:string">146113</rdfs:label>
<tvo:materialeDidattico  rdf:resource="http://otherdomain/files_data/index/insegnamento/146113/rdf/it"/>
<dc:title  rdf:datatype="xsd:string">METODOLOGIA CLINICA AVANZATA, EPIDEMIOLOGIA VALUTATIVA, PREVENZIONE E PROMOZIONE DELLA SALUTE</dc:title >
<tvo:annoAccademico  rdf:datatype="xsd:string">2012/2013</tvo:annoAccademico>
<tvo:corsoDiLaurea  rdf:datatype="xsd:string">SCIENZE DELLE PROFESSIONI SANITARIE TECNICHE DIAGNOSTICHE</tvo:corsoDiLaurea>
<tvo:tipologia  rdf:datatype="xsd:string">CORSO DI LAUREA MAGISTRALE DM.270/04</tvo:tipologia>
<tvo:codiceDiVerbalizzazione  rdf:datatype="xsd:integer">8059119</tvo:codiceDiVerbalizzazione>
<tvo:obbligoDiFrequenza  rdf:datatype="xsd:string">Si</tvo:obbligoDiFrequenza>
<tvo:haDocente rdf:resource="http://mydomain/LMF/resource/personale_4709"/>
<tvo:haModulo rdf:resource="http://mydomain/LMF/resource/modulo_3554"/>
<tvo:haModulo rdf:resource="http://mydomain/LMF/resource/modulo_3555"/>
<tvo:haModulo rdf:resource="http://mydomain/LMF/resource/modulo_3556"/>
</tvo:Corso>
This is the LDPath core to extract and index data with SOLR:

@prefix foaf : <http://xmlns.com/foaf/0.1/> ;
@prefix org : <http://www.w3.org/ns/org#> ;
@filter rdf:type is tvo:Corso ;
  corsoid = rdfs:label :: xsd:string;
  titolo = dc:title  :: xsd:string ;
  annoAccademico = tvo:annoAccademico :: xsd:string ;
  cdl = tvo:corsoDiLaurea :: xsd:string ;
  docente = tvo:haDocente :: xsd:anyURI ;

When I search with SOLR I'm not able to search the resource id, that is http://mydomain/resource/corso_146113 (this is the first problem), so I added corsoid but it doesn't work, because it doesn't work, this is the doc that returns SOLR. May be I need to delete old indexes?
<doc> <str name="id">450</str> <date name="lmf.indexed">2014-01-07T15:53:51.892Z</date> <date name="lmf.created">2013-12-02T13:14:34.22Z</date> <str name="lmf.uri">http://opendata.ccd.uniroma2.it:8000/LMF/resource/corso_146113</str> <arr name="lmf.type"> <str>owl:NamedIndividual</str> <str>http://opendata.ccd.uniroma2.it/ontologies/tvo/tvo.owl#Corso</str> </arr> <arr name="titolo"> <str>METODOLOGIA CLINICA AVANZATA, EPIDEMIOLOGIA VALUTATIVA, PREVENZIONE E PROMOZIONE DELLA SALUTE</str> </arr> <arr name="annoAccademico"> <str>2012/2013</str> </arr> <arr name="cdl"> <str>SCIENZE DELLE PROFESSIONI SANITARIE TECNICHE DIAGNOSTICHE</str> </arr> <arr name="docente"> <str>http://opendata.ccd.uniroma2.it:8000/LMF/resource/personale_4709</str> </arr> <long name="_version_">1456587440808525824</long></doc> <doc>

Thank you.
Alessandra
Reply all
Reply to author
Forward
0 new messages