2017-03-06 7 views
1

필자가 작성한 .ttl 파일이 있습니다. 나는 맥 환경에있다. 나는 파일이 유효한지 확인하기 위해 어떻게 apache jena를 사용할 수 있는지 궁금했다. 이를 수행하기 위해 필요한 터미널 명령은 무엇입니까? 아파치 jena 패킷을 다운로드했습니다.jena를 사용하여 RDF 파일 구문 확인

답변

2

당신과 함께 riot을 사용할 수 있습니다 $PATH_TO_JENA/bin/riot --validate $PATH_TO_FILE

riot [--time] [--check|--noCheck] [--sink] [--base=IRI] [--out=FORMAT] [--compress] file ... 
    Parser control 
     --sink     Parse but throw away output 
     --syntax=NAME   Set syntax (otherwise syntax guessed from file extension) 
     --base=URI    Set the base URI (does not apply to N-triples and N-Quads) 
     --check    Addition checking of RDF terms 
     --strict    Run with in strict mode 
     --validate    Same as --sink --check --strict 
     --rdfs=file   Apply some RDFS inference using the vocabulary in the file 
     --nocheck    Turn off checking of RDF terms 
     --stop     Stop parsing on encountering a bad RDF term 
    Output control 
     --output=FMT   Output in the given format, streaming if possible. 
     --formatted=FMT  Output, using pretty printing (consumes memory) 
     --stream=FMT   Output, using a streaming format 
     --compress    Compress the output with gzip 
    Time 
     --time     Time the operation 
    Symbol definition 
     --set     Set a configuration symbol to a value 
    General 
     -v --verbose   Verbose 
     -q --quiet   Run with minimal output 
     --debug    Output information for debugging 
     --help 
     --version    Version information