dajobe / raptor

Redland Raptor RDF syntax library
https://librdf.org/raptor/
Other
157 stars 62 forks source link

Please break extremely long lines in turtle output #51

Open KonradHoeffner opened 2 years ago

KonradHoeffner commented 2 years ago

Rapper with turtle output generates a line of length 35679 in one of my files, which is not ideal for version control. This happens when there are many objects for the same subject-predicate combination, for example:

[...]
<bb>
    ov:defines <bb/199993EG>, <bb/1TierArchitecture>, <bb/2PhaseCommitProtocol>, <bb/2TierArchitecture>, <bb/3LGM2>, <bb/3LGM2ApplicationComponent>, <bb/3LGM2B>, <bb/3LGM2CommunicationInterface>, <bb/3LGM2CommunicationLink>, <bb/3LGM2ComputerBasedApplicationComponent>, <bb/3LGM2DataTransmissionConnection>, <bb/3LGM2DomainLayer>, <bb/3LGM2EnterpriseFunction>, <bb/3LGM2EntityType>, <bb/3LGM2InformationProcess>, <bb/3LGM2InterlayerRelationship>, <bb/3LGM2IntralayerRelationship>, <bb/3LGM2Location>, <bb/3LGM2LogicalToolLayer>, <bb/3LGM2M>, <bb/3LGM2MCommunicationStandard>, <bb/3LGM2MMessageType>, <bb/3LGM2MessageType>, <bb/3LGM2OrganizationalSystem>, <bb/3LGM2OrganizationalUnit>, <bb/3LGM2PhysicalDataProcessingSystem>, <bb/3LGM2PhysicalToolLayer>, <bb/3LGM2ReceivingInterface>, <bb/3LGM2S>, <bb/3LGM2SInvokingInterface>, <bb/3LGM2SProvidingInterface>, <bb/3LGM2SService>, <bb/3LGM2SServiceClass>, <bb/3LGM2SendingInterface>, <bb/3LGM2SoftwareProduct>, <bb/3LGM2Support>, <bb/3LGM2Tool>, <bb/3LGM2ToolClass>, <bb/3LGM2TransmittingMedium>, <bb/3LGM2Use>, <bb/3TierArchitecture>, bb:A01, bb:A02, bb:A03, bb:AC1Style, bb:ACnStyle, bb:AccessControlManagement, bb:AccessControlSystem, bb:AccessIntegration, bb:Accuracy, bb:Acid, bb:AcquireAndImplement, bb:Activity, bb:ActivityModelingElement, bb:AdHocMonitoring, bb:Adaptability, bb:AdaptabilityOfTheHIS, bb:AdaptationCost, bb:Administration, bb:AdministrationAndAllocationOfPatientRecords, bb:AdministrationManagement, bb:AdministrationOfBusinessTripsAndFurtherTraining, bb:AdministrationOfHumanResourceMasterData, bb:AdministrativeAdmission, bb:AdministrativeDischargeAndBilling, bb:AdministrativeEntityType, bb:AdministrativeGuideline, bb:AdministrativePatientData, bb:AdministrativeStaff, bb:AdministrativeSticker, bb:AdministrativeSupport, bb:AdmissionDiagnosis, bb:AdoptionOfProjectResult, bb:Adt, bb:AnalysisAndAssessmentOfTheCurrentHISState, bb:AnnualHospitalOperatingCost, bb:AnnualITBudget, bb:ApplicationComponent, bb:ApplicationComponentStyle, bb:ApplicationHosting, bb:ApplicationPortfolio, bb:ApplicationServer, bb:ApplicationSupport, bb:Appointment, bb:AppointmentScheduling, bb:AppropriatePhysicalDataProcessingSystem, bb:Appropriateness, bb:ApprovalToAStudy, bb:ApprovalToStrategicInformationManagementPlan, bb:ArchitecturalStyle, bb:ArchitecturalStyleOfTheLogicalToolLayer, bb:ArchitecturalStyleOfThePhysicalToolLayer, bb:ArchitectureOfAnInformationSystem, bb:Archiving, bb:ArchivingOfPatientInformation, bb:ArtificialSystem, bb:Ascii, bb:AssetAccounting, bb:AsynchronousCommunication, bb:Atc, bb:Atomicity, bb:AuthenticityOfData, bb:AvailabilityOfApplicationComponents, bb:AvailabilityOfData, bb:AvailabilityOfTheApplicationComponent, bb:AvailablePhysicalDataProcessingSystem, bb:AvailableServer, bb:BPflV, bb:Backbone, bb:BalanceOfComputerBasedAndNonComputerBasedTools, bb:BalanceOfDataSecurityAndWorkingProcesses, bb:BalanceOfDocumentationQualityAndDocumentationEfforts, bb:BalanceOfFunctionalLeannessAndFunctionalRedundancy, bb:BalanceOfHomegeneityAndHeterogeneity, bb:BalancedNetwork, bb:Bar, bb:Bdsg, bb:Bed, bb:BedOccupation, bb:BehavioralPerspective, bb:Benchmarking, bb:BestOfBreedArchitecture, bb:BestPracticeBenchmark, bb:Bill, bb:BillingOfAccountableServices, bb:BloodBank, bb:BloodBankManagementSystem, bb:BodyWashing, bb:Book, bb:Bus, bb:BusinessIntelligenceSystem, bb:BusinessProcess, bb:BusinessProcessMetamodel, bb:BusinessProcessModel, bb:BusinessProcessReferenceModel, bb:BusinessReferenceModel, bb:BusinessStrategy, bb:CP1Style, bb:CPnStyle, bb:Car, bb:CardiovascularInformationSystem, bb:Case, bb:CaseMixIndex, bb:CaseStudy, bb:Catering, bb:Cchit, bb:CchitFunctionalCriterion, bb:Ccow, bb:CcowStandard, bb:Cda, bb:Cdrom, bb:Cen, bb:CentralizedComputingCenter, bb:CertifiabilityOfPhysicalDataProcessingSystems, bb:CertifiabilityOfSoftware, bb:CertifiablePhysicalDataProcessingSystem, bb:Certification, bb:CertificationByCCHIT, bb:CertificationByEuroRec, bb:CertificationByISO, bb:CertifiedPhysicalDataProcessingSystem, bb:ChangeManagement, bb:ChemotherapeuticTreatment, bb:ChiefExecutiveOfficer, bb:ChiefFinancialOfficer, bb:ChiefInformationOfficer, bb:ClassDiagram, bb:Classification, bb:ClassificationOfDiagnoses, bb:ClassificationOfProcedures, bb:Client, bb:ClientServerArchitecture, bb:ClinicalChemistryReport, bb:ClinicalDataWarehouse, bb:ClinicalDepartment, bb:ClinicalDocumentation, bb:ClinicalInformationSystem, bb:ClinicalPathway, bb:ClinicalResearch, bb:ClinicalTrial, bb:CloseToHierarchyNetwork, bb:Cluster, bb:Cobit, bb:CobitProcess, bb:CodingOfDiagnoses, bb:CodingOfDiagnosesAndProcedures, bb:CodingOfProcedures, bb:CodingSystem, bb:CommunicateDocumentsToOtherApplications, bb:CommunicateReportToOrderingUnit, bb:Communication, bb:CommunicationAbility, bb:CommunicationInterface, bb:CommunicationLink, bb:CommunicationNetwork, bb:CommunicationPattern, bb:CommunicationProtocol, bb:CommunicationServer, bb:CommunicationStandard, bb:Complaint, bb:Completeness, bb:ComponentAlignmentModelOfMartin, bb:ComputedTomography, bb:ComputerBasedApplicationComponent, bb:ComputerBasedInformationProcessing, bb:ComputerBasedInformationSystem, bb:ComputerBasedNursingForm, bb:ComputerBasedPhysicalDataProcessingSystem, bb:ComputerBasedTool, bb:ComputerNetwork, bb:ComputerSupportedInformationSystem, bb:ComputerSystem, bb:ComputerizedPhysicianOrderEntrySystem, bb:ComputingCenter, bb:ComputingCenterManager, bb:Confidentiality, bb:ConfigurationManagement, bb:ConformityWithUserExpectations, bb:ConsensusMethod, bb:Consistency, bb:Consultant, bb:ContextualIntegration, bb:ContinualServiceImprovement, bb:ContinuousHISAuditing, bb:ContinuousQualityImprovementProcess, bb:Controllability, bb:ControlledRedundancyOfData, bb:ControlledTranscriptionOfData, bb:Controlling, bb:ControllingReport, bb:ConvergingTechnologies, bb:CopperCable, bb:CorrectInformation, bb:CostAccounting, bb:CostBenefitAnalysis, bb:CostEffectivenessAnalysis, bb:CostOfTreatment, bb:CostUnit, bb:CreationOfStrategicInformationManagementPlan, bb:CreditAccounting, bb:CrossEnterpriseDocumentSharing, bb:CtScanner, bb:Customizing, bb:DB1Style, bb:DBnStyle, bb:Data, bb:DataCollectionEffort, bb:DataIntegration, bb:DataMetamodel, bb:DataModel, bb:DataProtection, bb:DataReferenceModel, bb:DataSecurity, bb:DataSecurityOfficer, bb:DataTransmissionConnection, bb:DataWarehouseSystem, bb:DatabaseServer, bb:DatabaseStyle, bb:DatabaseSystem, bb:DebtorAccounting, bb:DecisionMakingAndPatientInformation, bb:DecisionMakingPlanningAndOrganizationOfPatientTreatment, bb:DecisionSupportSystem, bb:Decomposition, bb:DecubitusProphylaxis, bb:DeductiveApproach, bb:DefinitionEN, bb:DegreeOfComputerSupport, bb:DeliverAndSupport, bb:DeliveringOfCustomerCenteredServices, bb:DelphiSurvey, bb:DepartmentOfFacilityManagement, bb:DepartmentOfQualityManagement, bb:DepartmentalSystemAdministrator, bb:DeploymentOfStrategicInformationManagementPlan, bb:DescriptionOfTheCurrentHISState, bb:DescriptionOfThePlannedHISState, bb:DesigningCustomerCenteredServices, bb:DhcpServer, bb:Diagnosis, bb:DiagnosisClass, bb:DiagnosticProcedure, bb:DiagnosticService, bb:DiagnosticStandard, bb:DialysisInformationSystem, bb:DicomFileFormat, bb:DicomMessageFormat, bb:DicomNetworkProtocol, bb:DicomService, bb:DicomStandard, bb:Diet, bb:DigitalDictationSystem, bb:DigitalImage, bb:DigitalXRay, bb:Directing, bb:DirectiveForHISConstruction, bb:DischargeSummary, bb:DiseaseManagement, bb:DnsServer, bb:DocumentArchivingSystem, bb:DocumentStandard, bb:DoubleExamination, bb:Drg, bb:DrgCalculation, bb:Drug, bb:DrugService, bb:Durability, bb:EMailCommunication, bb:EN12538, bb:EN12539, bb:EN1613, bb:EconomicAnalysis, bb:Edifact, bb:Education, bb:EducationResearch, bb:EffectivenessStudy, bb:Efficiency, bb:EfficiencyOfInformationLogistics, bb:EfqmExcellenceModel, bb:EhrStrategy, bb:ElectronicHealthRecord, bb:ElectronicPatientRecord, bb:EncryptionSoftware, bb:EnsureAccessIntegration, bb:EnsureContextualIntegration, bb:EnsureDataIntegration, bb:EnsurePresentationIntegration, bb:EnsureProcessIntegration, bb:EnsureSemanticIntegration, bb:EnterpriseFunction, bb:EnterpriseFunctionModelingElement, bb:EnterpriseOrganizationalStructure, bb:EnterpriseResourcePlanningSystem, bb:EntityType, bb:EntityTypeModelingElement, bb:EntityTypeRelation, bb:EntityTypeRelationModelingElement, bb:ErrorTolerance, bb:EstablishAndPromoteTheStrategicInformationManagementPlan, bb:EstablishingReferentialIntegrity, bb:Ethernet, bb:EuroRec, bb:EuroRecEHRQualitySeal, bb:EuropeanNorm, bb:Evaluation, bb:EvaluationMethod, bb:Event, bb:EventCountingStudy, bb:EventDrivenProcessChain, bb:EventModelingElement, bb:Excretion, bb:ExecutionOfAQuantitativeStudy, bb:ExecutionOfAnITEvaluationStudy, bb:ExecutionOfAnOperation, bb:ExecutionOfChemotheraphy, bb:ExecutionOfClinicalTrials, bb:ExecutionOfClinicalTrialsAndExperiments, bb:ExecutionOfDiagnosticAndTherapeuticProcedures, bb:ExecutionOfDiagnosticTherapeuticAndNursingProcedures, bb:ExecutionOfIrradiation, bb:ExecutionOfLabExaminations, bb:ExecutionOfNursingProcedures, bb:ExecutionOfProphylaxis, bb:ExecutionOfRadiologicalProcedures, bb:ExperimentalStudyDesign, bb:Extent, bb:ExternalFinding, bb:FacilityAndArea, bb:FacilityManagement, bb:FailureManagement, bb:FamilyHistory, bb:FaxMachine, bb:Feature, bb:FeatureAdministrateTheMasterPatientIndex, bb:FeatureAdmitPatientsToTheWard, bb:FeatureAnalyzeData, bb:FeatureArchivePictures, bb:FeatureAssignDoctorsToPatientsOrRooms, bb:FeatureAssignOrderAndBloodSamplesToDevices, bb:FeatureAssignOrdersToModalities, bb:FeatureAssignPatientsToModalities, bb:FeatureAssignPatientsToRoomsAndBeds, bb:FeatureAssignStaffToPatientsOrOutpatientUnits, bb:FeatureAssignStaffToPatientsOrRooms, bb:FeatureAttachDigitalSignatures, bb:FeatureCalculateDosageOfDrugs, bb:FeatureCollectResultsFromDevices, bb:FeatureCommunicateDischargeInformation, bb:FeatureCommunicatePictures, bb:FeatureCreateWorklistForAGroupOfPatients, bb:FeatureCreatingARoster, bb:FeatureCreationOfRadiologyReports, bb:FeatureDisplayEarlierLabResultsOfAPatient, bb:FeatureDisplayPictures, bb:FeatureDisplayVitalParametersFromMonitoringDevices, bb:FeatureDisplayWarningMessages, bb:FeatureImportDocuments, bb:FeatureIndexDocumentContent, bb:FeatureIntegrateDataFromDifferentApplicationComponents, bb:FeatureManageModalities, bb:FeatureManageStorageFormats, bb:FeatureManageStorageMedia, bb:FeatureMergePatientInformationFromTwoRecords, bb:FeatureMessageQueuing, bb:FeatureModifyPresentationOfPictures, bb:FeatureMulticasting, bb:FeatureOfferDecisionSupportForCarePlanning, bb:FeatureOrganizePatientTransport, bb:FeaturePrepareReport, bb:FeaturePreparingStatistics, bb:FeaturePrintForms, bb:FeaturePrintReports, bb:FeaturePrintingOfLabels, bb:FeatureProvideACollectionOfInternalProcessesAndRegulations, bb:FeatureProvideAccessToArchivedInformation, bb:FeatureProvideCatalogsAndOtherMeansForCodingOfNursingDiagnosis, bb:FeatureProvideCatalogsAndOtherMeansForCodingOfNursingProcedures, bb:FeatureProvideCatalogsAndOtherMeansForCodingPatientRelatedProcedures, bb:FeatureProvideCatalogsAndOtherMeansForCodingPatientsDiagnoses, bb:FeatureProvideCatalogsAndOtherMeansForCodingRadiologicalDiagnoses, bb:FeatureProvideCatalogsAndOtherMeansForCodingRadiologicalProcedures, bb:FeatureProvideContextRelatedMedicalKnowledge, bb:FeatureProvideDrugCatalogs, bb:FeatureProvideFormsForClinicalReports, bb:FeatureProvideFormsForDocumentingClinicalProcedures, bb:FeatureProvideFormsForDocumentingDiagnosis, bb:FeatureProvideFormsForDocumentingDiagnosisAndProblems, bb:FeatureProvideFormsForDocumentingMedicalAnamnesis, bb:FeatureProvideFormsForDocumentingMedications, bb:FeatureProvideFormsForDocumentingNursingAims, bb:FeatureProvideFormsForDocumentingNursingTasks, bb:FeatureProvideFormsForDocumentingPatientsInformedConsent, bb:FeatureProvideFormsForDocumentingPerformedTasks, bb:FeatureProvideFormsForDocumentingPlannedTasks, bb:FeatureProvideFormsForDocumentingProceduresAndOutcomes, bb:FeatureProvideFormsForDocumentingTheNursingHistory, bb:FeatureProvideFormsForDocumentingTheOutcomeOfNursingTasks, bb:FeatureProvideFormsForEnteringClinicalData, bb:FeatureProvideFormsForEnteringOrUpdatingPatientAdministrativeInformation, [...]

I would appreciate if there was a maximum line length, even if it is very long, such as 200 or 1000, to break this up like the following:


<bb>
    ov:defines <bb/199993EG>, <bb/1TierArchitecture>, <bb/2PhaseCommitProtocol>, <bb/2TierArchitecture>, <bb/3LGM2>, <bb/3LGM2ApplicationComponent>, <bb/3LGM2B>,   <bb/3LGM2CommunicationInterface>, <bb/3LGM2CommunicationLink>, <bb/3LGM2ComputerBasedApplicationComponent>,
      <bb/3LGM2DataTransmissionConnection>, <bb/3LGM2DomainLayer>, <bb/3LGM2EnterpriseFunction>, <bb/3LGM2EntityType>, <bb/3LGM2InformationProcess>, <bb/3LGM2InterlayerRelationship>, <bb/3LGM2IntralayerRelationship>, <bb/3LGM2Location>, <bb/3LGM2LogicalToolLayer>, <bb/3LGM2M>, <bb/3LGM2MCommunicationStandard>, <bb/3LGM2MMessageType>, <bb/3LGM2MessageType>, <bb/3LGM2OrganizationalSystem>, <bb/3LGM2OrganizationalUnit>, <bb/3LGM2PhysicalDataProcessingSystem>, <bb/3LGM2PhysicalToolLayer>, <bb/3LGM2ReceivingInterface>, <bb/3LGM2S>, <bb/3LGM2SInvokingInterface>, <bb/3LGM2SProvidingInterface>, <bb/3LGM2SService>, <bb/3LGM2SServiceClass>, <bb/3LGM2SendingInterface>, <bb/3LGM2SoftwareProduct>, <bb/3LGM2Support>, <bb/3LGM2Tool>, <bb/3LGM2ToolClass>, <bb/3LGM2TransmittingMedium>, <bb/3LGM2Use>, <bb/3TierArchitecture>, bb:A01, bb:A02, bb:A03, bb:AC1Style, bb:ACnStyle, 
      bb:AccessControlManagement, bb:AccessControlSystem, bb:AccessIntegration, bb:Accuracy, bb:Acid, bb:AcquireAndImplement, bb:Activity, bb:ActivityModelingElement, bb:AdHocMonitoring, bb:Adaptability, bb:AdaptabilityOfTheHIS, bb:AdaptationCost, bb:Administration, bb:AdministrationAndAllocationOfPatientRecords, bb:AdministrationManagement, bb:AdministrationOfBusinessTripsAndFurtherTraining, bb:AdministrationOfHumanResourceMasterData, bb:AdministrativeAdmission, bb:AdministrativeDischargeAndBilling, bb:AdministrativeEntityType, bb:AdministrativeGuideline, bb:AdministrativePatientData, bb:AdministrativeStaff, bb:AdministrativeSticker, [...]